mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-02-22 05:09:02 +00:00
Empty commit
This commit is contained in:
parent
e830d8d517
commit
debbc59149
@ -347,7 +347,7 @@ public static function form($Index, $Return = false) {
|
||||
*/
|
||||
public static function selected($Name, $Value, $Attribute='selected', $Array = array()) {
|
||||
if (empty($Array)) {
|
||||
$Array == $_GET;
|
||||
$Array = $_GET;
|
||||
}
|
||||
if (isset($Array[$Name]) && $Array[$Name]!=='') {
|
||||
if ($Array[$Name] == $Value) {
|
||||
|
@ -6,7 +6,7 @@ class Users {
|
||||
* @return array ($Classes, $ClassLevels)
|
||||
*/
|
||||
public static function get_classes() {
|
||||
global $Cache, $DB, $Debug;
|
||||
global $Cache, $DB, $Debug, $UserClassesHidePMs;
|
||||
// Get permissions
|
||||
list($Classes, $ClassLevels) = $Cache->get_value('classes');
|
||||
if (!$Classes || !$ClassLevels) {
|
||||
|
12
gazelle.sql
12
gazelle.sql
@ -1411,6 +1411,18 @@ CREATE TABLE `users_torrent_history_temp` (
|
||||
PRIMARY KEY (`UserID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
|
||||
CREATE TABLE `users_votes` (
|
||||
`UserID` int(10) unsigned NOT NULL,
|
||||
`GroupID` int(10) NOT NULL,
|
||||
`Type` enum('Up','Down') DEFAULT NULL,
|
||||
PRIMARY KEY (`UserID`,`GroupID`),
|
||||
KEY `GroupID` (`GroupID`),
|
||||
KEY `UserID` (`UserID`),
|
||||
KEY `Type` (`Type`),
|
||||
CONSTRAINT `users_votes_ibfk_1` FOREIGN KEY (`GroupID`) REFERENCES `torrents_group` (`ID`) ON DELETE CASCADE,
|
||||
CONSTRAINT `users_votes_ibfk_2` FOREIGN KEY (`UserID`) REFERENCES `users_main` (`ID`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `users_warnings_forums` (
|
||||
`UserID` int(10) unsigned NOT NULL,
|
||||
`Comment` text NOT NULL,
|
||||
|
@ -7,7 +7,7 @@
|
||||
header('Expires: '.date('D, d-M-Y H:i:s \U\T\C',time()+3600*24*120)); //120 days
|
||||
header('Last-Modified: '.date('D, d-M-Y H:i:s \U\T\C',time()));
|
||||
|
||||
if(!check_perms('users_view_ips')) { die('Access denied.'); }
|
||||
if(!check_perms('users_view_ips') && !check_perms('tc_advanced_user_search')) { die('Access denied.'); }
|
||||
|
||||
if (empty($_GET['ip'])) {
|
||||
die("Invalid IP");
|
||||
|
Loading…
Reference in New Issue
Block a user