mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-31 10:31:37 +00:00
Empty commit
This commit is contained in:
parent
e783e4b59c
commit
1cfa269a43
@ -256,18 +256,21 @@ function file_list() {
|
|||||||
$FileList[]= array($this->Val['info']->Val['length'], $this->Val['info']->Val['name']);
|
$FileList[]= array($this->Val['info']->Val['length'], $this->Val['info']->Val['name']);
|
||||||
} else { // Multiple file mode
|
} else { // Multiple file mode
|
||||||
$FileNames = array();
|
$FileNames = array();
|
||||||
|
$FileSizes = array();
|
||||||
$TotalSize = 0;
|
$TotalSize = 0;
|
||||||
$Files = $this->Val['info']->Val['files']->Val;
|
$Files = $this->Val['info']->Val['files']->Val;
|
||||||
foreach($Files as $File) {
|
foreach($Files as $File) {
|
||||||
$TotalSize+=$File->Val['length'];
|
$TotalSize += $File->Val['length'];
|
||||||
$FileSize = $File->Val['length'];
|
$FileSize = $File->Val['length'];
|
||||||
|
|
||||||
$FileName = ltrim(implode('/',$File->Val['path']->Val), '/');
|
$FileName = ltrim(implode('/',$File->Val['path']->Val), '/');
|
||||||
|
$FileSizes[] = $FileSize;
|
||||||
$FileList[] = array($FileSize, $FileName);
|
|
||||||
$FileNames[] = $FileName;
|
$FileNames[] = $FileName;
|
||||||
}
|
}
|
||||||
array_multisort($FileNames, $FileList);
|
natcasesort($FileNames);
|
||||||
|
foreach($FileNames as $Index => $FileName) {
|
||||||
|
$FileList[] = array($FileSizes[$Index], $FileName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return array($TotalSize, $FileList);
|
return array($TotalSize, $FileList);
|
||||||
}
|
}
|
||||||
|
@ -77,11 +77,15 @@ class BENCODE {
|
|||||||
var $Pos = 1; // Pointer that indicates our position in the string
|
var $Pos = 1; // Pointer that indicates our position in the string
|
||||||
var $Str = ''; // Torrent string
|
var $Str = ''; // Torrent string
|
||||||
|
|
||||||
function BENCODE($Val){
|
function __construct($Val, $IsParsed = false){
|
||||||
$this->Str = $Val;
|
if(!$IsParsed) {
|
||||||
$this->dec();
|
$this->Str = $Val;
|
||||||
|
$this->dec();
|
||||||
|
} else {
|
||||||
|
$this->Val = $Val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Decode an element based on the type
|
// Decode an element based on the type
|
||||||
function decode($Type, $Key){
|
function decode($Type, $Key){
|
||||||
if(ctype_digit($Type)) { // Element is a string
|
if(ctype_digit($Type)) { // Element is a string
|
||||||
@ -248,16 +252,21 @@ function file_list() {
|
|||||||
$TotalSize = substr($this->Val['info']->Val['length'],7);
|
$TotalSize = substr($this->Val['info']->Val['length'],7);
|
||||||
$FileList[]= array($TotalSize, $this->Val['info']->Val['name']);
|
$FileList[]= array($TotalSize, $this->Val['info']->Val['name']);
|
||||||
} else { // Multiple file mode
|
} else { // Multiple file mode
|
||||||
|
$FileNames = array();
|
||||||
|
$FileSizes = array();
|
||||||
$TotalSize = 0;
|
$TotalSize = 0;
|
||||||
$Files = $this->Val['info']->Val['files']->Val;
|
$Files = $this->Val['info']->Val['files']->Val;
|
||||||
foreach($Files as $File) {
|
foreach($Files as $File) {
|
||||||
$TotalSize+=substr($File->Val['length'], 7);
|
$FileSize = substr($File->Val['length'], 7);
|
||||||
$FileSize = substr($File->Val['length'],7);
|
$TotalSize += $FileSize;
|
||||||
|
|
||||||
$FileName = implode('/',$File->Val['path']->Val);
|
|
||||||
|
|
||||||
$FileList[]=array($FileSize, $FileName);
|
|
||||||
|
|
||||||
|
$FileName = ltrim(implode('/',$File->Val['path']->Val), '/');
|
||||||
|
$FileSizes[] = $FileSize;
|
||||||
|
$FileNames[] = $FileName;
|
||||||
|
}
|
||||||
|
natcasesort($FileNames);
|
||||||
|
foreach($FileNames as $Index => $FileName) {
|
||||||
|
$FileList[] = array($FileSizes[$Index], $FileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return array($TotalSize, $FileList);
|
return array($TotalSize, $FileList);
|
||||||
|
@ -74,7 +74,10 @@
|
|||||||
break;
|
break;
|
||||||
case 'add_poll_option':
|
case 'add_poll_option':
|
||||||
require(SERVER_ROOT.'/sections/forums/add_poll_option.php');
|
require(SERVER_ROOT.'/sections/forums/add_poll_option.php');
|
||||||
break;
|
break;
|
||||||
|
case 'warn':
|
||||||
|
require(SERVER_ROOT.'/sections/forums/warn.php');
|
||||||
|
break;
|
||||||
case 'take_warn':
|
case 'take_warn':
|
||||||
require(SERVER_ROOT.'/sections/forums/take_warn.php');
|
require(SERVER_ROOT.'/sections/forums/take_warn.php');
|
||||||
break;
|
break;
|
||||||
|
@ -11,6 +11,12 @@
|
|||||||
$UserID = (int)$_POST['userid'];
|
$UserID = (int)$_POST['userid'];
|
||||||
$Key = (int)$_POST['key'];
|
$Key = (int)$_POST['key'];
|
||||||
$SQLTime = sqltime();
|
$SQLTime = sqltime();
|
||||||
|
|
||||||
|
$UserInfo = user_info($UserID);
|
||||||
|
if($UserInfo['Class'] > $LoggedUser['Class']) {
|
||||||
|
error(403);
|
||||||
|
}
|
||||||
|
|
||||||
$URL = "https://".SSL_SITE_URL."/forums.php?action=viewthread&postid=$PostID#post$PostID";
|
$URL = "https://".SSL_SITE_URL."/forums.php?action=viewthread&postid=$PostID#post$PostID";
|
||||||
if ($Length != 'verbal') {
|
if ($Length != 'verbal') {
|
||||||
$Time = ((int)$Length) * (7 * 24 * 60 * 60);
|
$Time = ((int)$Length) * (7 * 24 * 60 * 60);
|
||||||
|
@ -412,9 +412,15 @@
|
|||||||
if(check_perms('users_warn') && $AuthorID != $LoggedUser['ID']) {
|
if(check_perms('users_warn') && $AuthorID != $LoggedUser['ID']) {
|
||||||
$AuthorInfo = user_info($AuthorID);
|
$AuthorInfo = user_info($AuthorID);
|
||||||
if($LoggedUser['Class'] >= $AuthorInfo['Class']) { ?>
|
if($LoggedUser['Class'] >= $AuthorInfo['Class']) { ?>
|
||||||
- <a href="forums.php?action=warn&postid=<?=$PostID?>&userid=<?=$AuthorID?>&key=<?=$Key?>">[Warn]</a>
|
<form action="" style="display: none;" name="warn<?=$PostID?>" method="post">
|
||||||
<? }
|
<input type="hidden" name="action" value="warn" />
|
||||||
}
|
<input type="hidden" name="postid" value="<?=$PostID?>" />
|
||||||
|
<input type="hidden" name="userid" value="<?=$AuthorID?>" />
|
||||||
|
<input type="hidden" name="key" value="<?=$Key?>" />
|
||||||
|
</form>
|
||||||
|
- <a href="#" onclick="document.warn<?=$PostID?>.submit(); return false;">[Warn]</a>
|
||||||
|
<? } ?>
|
||||||
|
<? }
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<a href="#">↑</a>
|
<a href="#">↑</a>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!check_perms('users_warn')) { error(404);}
|
if (!check_perms('users_warn')) { error(404);}
|
||||||
isset_request($_GET, array('postid', 'userid', 'key'));
|
isset_request($_POST, array('postid', 'userid', 'key'));
|
||||||
$PostID = (int) $_GET['postid'];
|
$PostID = (int) $_POST['postid'];
|
||||||
$UserID = (int)$_GET['userid'];
|
$UserID = (int)$_POST['userid'];
|
||||||
$Key = (int)$_GET['key'];
|
$Key = (int)$_POST['key'];
|
||||||
$UserInfo = user_info($UserID);
|
$UserInfo = user_info($UserID);
|
||||||
$DB -> query("SELECT
|
$DB -> query("SELECT
|
||||||
p.Body, t.ForumID
|
p.Body, t.ForumID
|
||||||
|
@ -235,7 +235,8 @@
|
|||||||
'reason' => '-1',
|
'reason' => '-1',
|
||||||
'title' => 'Bonus Tracks Only',
|
'title' => 'Bonus Tracks Only',
|
||||||
'report_messages' => array(
|
'report_messages' => array(
|
||||||
'If possible, please provide a link to Amazon.com or another source showing the proper track listing.'
|
'If possible, please provide a link to Amazon.com or another source showing the proper track listing.',
|
||||||
|
'Per <a href="rules.php?p=upload#r2.4.5">rule 2.4.5</a>, exclusive WEB-sourced bonus tracks are allowed to be uploaded separately.'
|
||||||
),
|
),
|
||||||
'report_fields' => array(
|
'report_fields' => array(
|
||||||
'track' => '0',
|
'track' => '0',
|
||||||
|
@ -60,11 +60,11 @@
|
|||||||
|
|
||||||
<div class="box pad center">
|
<div class="box pad center">
|
||||||
<h1>Uploads by month</h1>
|
<h1>Uploads by month</h1>
|
||||||
<img src="http://chart.apis.google.com/chart?cht=lc&chs=880x160&chco=000D99,99000D,00990D&chg=0,-1,1,1&chxt=y,x&chxs=0,h&chxl=1:|<?=implode('|',$Labels)?>&chxr=0,0,<?=$Max?>&chd=t:<?=implode(',',$InFlow)?>|<?=implode(',',$OutFlow)?>|<?=implode(',',$NetFlow)?>&chls=2,4,0&chdl=Uploads|Deletions|Remaining&chf=bg,s,FFFFFF00" />
|
<img src="http://chart.apis.google.com/chart?cht=lc&chs=880x160&chco=000D99,99000D,00990D&chg=0,-1,1,1&chxt=y,x&chxs=0,h&chxl=1:|<?=implode('|',$Labels)?>&chxr=0,0,<?=$Max?>&chd=t:<?=implode(',',$InFlow)?>|<?=implode(',',$OutFlow)?>|<?=implode(',',$NetFlow)?>&chls=2,4,0&chdl=Uploads|Deletions|Remaining&chf=bg,s,FFFFFF00" alt="User Flow Chart" />
|
||||||
</div>
|
</div>
|
||||||
<div class="box pad center">
|
<div class="box pad center">
|
||||||
<h1>Torrents by category</h1>
|
<h1>Torrents by category</h1>
|
||||||
<img src="<?=$Categories?>" />
|
<img src="<?=$Categories?>" alt="" />
|
||||||
</div>
|
</div>
|
||||||
<?
|
<?
|
||||||
show_footer();
|
show_footer();
|
||||||
|
@ -127,36 +127,36 @@
|
|||||||
?>
|
?>
|
||||||
<h3>User Flow</h3>
|
<h3>User Flow</h3>
|
||||||
<div class="box pad center">
|
<div class="box pad center">
|
||||||
<img src="http://chart.apis.google.com/chart?cht=lc&chs=880x160&chco=000D99,99000D&chg=0,-1,1,1&chxt=y,x&chxs=0,h&chxl=1:|<?=implode('|',$Labels)?>&chxr=0,0,<?=$Max?>&chd=t:<?=implode(',',$InFlow)?>|<?=implode(',',$OutFlow)?>&chls=2,4,0&chdl=New+Registrations|Disabled+Users&chf=bg,s,FFFFFF00" />
|
<img src="http://chart.apis.google.com/chart?cht=lc&chs=880x160&chco=000D99,99000D&chg=0,-1,1,1&chxt=y,x&chxs=0,h&chxl=1:|<?=implode('|',$Labels)?>&chxr=0,0,<?=$Max?>&chd=t:<?=implode(',',$InFlow)?>|<?=implode(',',$OutFlow)?>&chls=2,4,0&chdl=New+Registrations|Disabled+Users&chf=bg,s,FFFFFF00" alt="User Flow Chart" />
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<h3>User Classes</h3>
|
<h3>User Classes</h3>
|
||||||
<div class="box pad center">
|
<div class="box pad center">
|
||||||
<img src="<?=$ClassDistribution?>" />
|
<img src="<?=$ClassDistribution?>" alt="User Class Distribution" />
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<h3>User Platforms</h3>
|
<h3>User Platforms</h3>
|
||||||
<div class="box pad center">
|
<div class="box pad center">
|
||||||
<img src="<?=$PlatformDistribution?>" />
|
<img src="<?=$PlatformDistribution?>" alt="User Platform Distribution" />
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<h3>User Browsers</h3>
|
<h3>User Browsers</h3>
|
||||||
<div class="box pad center">
|
<div class="box pad center">
|
||||||
<img src="<?=$BrowserDistribution?>" />
|
<img src="<?=$BrowserDistribution?>" alt="User Browsers Market Share" />
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<h3>Geographical Distribution Map</h3>
|
<h3>Geographical Distribution Map</h3>
|
||||||
<div class="box center">
|
<div class="box center">
|
||||||
<img src="http://chart.apis.google.com/chart?cht=map:fixed=-55,-180,73,180&chs=440x220&chd=t:<?=implode(',',$Rank)?>&chco=FFFFFF,EDEDED,1F0066&chld=<?=implode('|',$Countries)?>&chf=bg,s,CCD6FF" />
|
<img src="http://chart.apis.google.com/chart?cht=map:fixed=-55,-180,73,180&chs=440x220&chd=t:<?=implode(',',$Rank)?>&chco=FFFFFF,EDEDED,1F0066&chld=<?=implode('|',$Countries)?>&chf=bg,s,CCD6FF" alt="Geographical Distribution Map - Worldwide" />
|
||||||
<img src="http://chart.apis.google.com/chart?cht=map:fixed=37,-26,65,67&chs=440x220&chs=440x220&chd=t:<?=implode(',',$Rank)?>&chco=FFFFFF,EDEDED,1F0066&chld=<?=implode('|',$Countries)?>&chf=bg,s,CCD6FF" />
|
<img src="http://chart.apis.google.com/chart?cht=map:fixed=37,-26,65,67&chs=440x220&chs=440x220&chd=t:<?=implode(',',$Rank)?>&chco=FFFFFF,EDEDED,1F0066&chld=<?=implode('|',$Countries)?>&chf=bg,s,CCD6FF" alt="Geographical Distribution Map - Europe" />
|
||||||
<br />
|
<br />
|
||||||
<img src="http://chart.apis.google.com/chart?cht=map:fixed=-46,-132,24,21.5&chs=440x220&chd=t:<?=implode(',',$Rank)?>&chco=FFFFFF,EDEDED,1F0066&chld=<?=implode('|',$Countries)?>&chf=bg,s,CCD6FF" />
|
<img src="http://chart.apis.google.com/chart?cht=map:fixed=-46,-132,24,21.5&chs=440x220&chd=t:<?=implode(',',$Rank)?>&chco=FFFFFF,EDEDED,1F0066&chld=<?=implode('|',$Countries)?>&chf=bg,s,CCD6FF" alt="Geographical Distribution Map - South America" />
|
||||||
<img src="http://chart.apis.google.com/chart?cht=map:fixed=-11,22,50,160&chs=440x220&chd=t:<?=implode(',',$Rank)?>&chco=FFFFFF,EDEDED,1F0066&chld=<?=implode('|',$Countries)?>&chf=bg,s,CCD6FF" />
|
<img src="http://chart.apis.google.com/chart?cht=map:fixed=-11,22,50,160&chs=440x220&chd=t:<?=implode(',',$Rank)?>&chco=FFFFFF,EDEDED,1F0066&chld=<?=implode('|',$Countries)?>&chf=bg,s,CCD6FF" alt="Geographical Distribution Map - Asia" />
|
||||||
<br />
|
<br />
|
||||||
<img src="http://chart.apis.google.com/chart?cht=map:fixed=-36,-57,37,100&chs=440x220&chd=t:<?=implode(',',$Rank)?>&chco=FFFFFF,EDEDED,1F0066&chld=<?=implode('|',$Countries)?>&chf=bg,s,CCD6FF" />
|
<img src="http://chart.apis.google.com/chart?cht=map:fixed=-36,-57,37,100&chs=440x220&chd=t:<?=implode(',',$Rank)?>&chco=FFFFFF,EDEDED,1F0066&chld=<?=implode('|',$Countries)?>&chf=bg,s,CCD6FF" alt="Geographical Distribution Map - Africa" />
|
||||||
<img src="http://chart.apis.google.com/chart?cht=map:fixed=14.8,15,45,86&chs=440x220&chd=t:<?=implode(',',$Rank)?>&chco=FFFFFF,EDEDED,1F0066&chld=<?=implode('|',$Countries)?>&chf=bg,s,CCD6FF" />
|
<img src="http://chart.apis.google.com/chart?cht=map:fixed=14.8,15,45,86&chs=440x220&chd=t:<?=implode(',',$Rank)?>&chco=FFFFFF,EDEDED,1F0066&chld=<?=implode('|',$Countries)?>&chf=bg,s,CCD6FF" alt="Geographical Distribution Map - Middle East" />
|
||||||
<br />
|
<br />
|
||||||
<img src="http://chart.apis.google.com/chart?chxt=y,x&chg=0,-1,1,1&chxs=0,h&cht=bvs&chco=76A4FB&chs=880x300&chd=t:<?=implode(',',array_slice($CountryUsers,0,31))?>&chxl=1:|<?=implode('|',array_slice($Countries,0,31))?>|0:|<?=implode('|',$LogIncrements)?>&chf=bg,s,FFFFFF00" />
|
<img src="http://chart.apis.google.com/chart?chxt=y,x&chg=0,-1,1,1&chxs=0,h&cht=bvs&chco=76A4FB&chs=880x300&chd=t:<?=implode(',',array_slice($CountryUsers,0,31))?>&chxl=1:|<?=implode('|',array_slice($Countries,0,31))?>|0:|<?=implode('|',$LogIncrements)?>&chf=bg,s,FFFFFF00" alt="Number of users by country" />
|
||||||
</div>
|
</div>
|
||||||
<?
|
<?
|
||||||
show_footer();
|
show_footer();
|
||||||
|
@ -805,7 +805,15 @@ function filelist($Str) {
|
|||||||
<? if(check_perms('users_warn') && $AuthorID != $LoggedUser['ID']) {
|
<? if(check_perms('users_warn') && $AuthorID != $LoggedUser['ID']) {
|
||||||
$AuthorInfo = user_info($AuthorID);
|
$AuthorInfo = user_info($AuthorID);
|
||||||
if($LoggedUser['Class'] >= $AuthorInfo['Class']) { ?>
|
if($LoggedUser['Class'] >= $AuthorInfo['Class']) { ?>
|
||||||
- <a href="torrents.php?action=warn&groupid=<?=$GroupID?>&postid=<?=$PostID?>&userid=<?=$AuthorID?>&key=<?=$Key?>">[Warn]</a>
|
<form action="" style="display: none;" name="warn<?=$PostID?>" method="post">
|
||||||
|
<input type="hidden" name="action" value="warn" />
|
||||||
|
<input type="hidden" name="groupid" value="<?=$GroupID?>" />
|
||||||
|
<input type="hidden" name="postid" value="<?=$PostID?>" />
|
||||||
|
<input type="hidden" name="userid" value="<?=$AuthorID?>" />
|
||||||
|
<input type="hidden" name="key" value="<?=$Key?>" />
|
||||||
|
</form>
|
||||||
|
- <a href="#" onclick="document.warn<?=$PostID?>.submit(); return false;">[Warn]</a>
|
||||||
|
|
||||||
<? }
|
<? }
|
||||||
} ?>
|
} ?>
|
||||||
- <a href="#quickpost" onclick="Quote('<?=$PostID?>','<?=$Username?>');">[Quote]</a>
|
- <a href="#quickpost" onclick="Quote('<?=$PostID?>','<?=$Username?>');">[Quote]</a>
|
||||||
|
@ -12,6 +12,10 @@
|
|||||||
$UserID = (int)$_POST['userid'];
|
$UserID = (int)$_POST['userid'];
|
||||||
$Key = (int)$_POST['key'];
|
$Key = (int)$_POST['key'];
|
||||||
$SQLTime = sqltime();
|
$SQLTime = sqltime();
|
||||||
|
$UserInfo = user_info($UserID);
|
||||||
|
if($UserInfo['Class'] > $LoggedUser['Class']) {
|
||||||
|
error(403);
|
||||||
|
}
|
||||||
$URL = "https://". SSL_SITE_URL."/torrents.php?id=$GroupID&postid=$PostID#post$PostID";
|
$URL = "https://". SSL_SITE_URL."/torrents.php?id=$GroupID&postid=$PostID#post$PostID";
|
||||||
if ($Length != 'verbal') {
|
if ($Length != 'verbal') {
|
||||||
$Time = ((int)$Length) * (7 * 24 * 60 * 60);
|
$Time = ((int)$Length) * (7 * 24 * 60 * 60);
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!check_perms('users_warn')) { error(404);}
|
if (!check_perms('users_warn')) { error(404);}
|
||||||
isset_request($_GET, array('groupid', 'postid', 'userid', 'key'));
|
isset_request($_POST, array('groupid', 'postid', 'userid', 'key'));
|
||||||
|
|
||||||
$GroupID = (int) $_GET['groupid'];
|
$GroupID = (int) $_POST['groupid'];
|
||||||
$PostID = (int) $_GET['postid'];
|
$PostID = (int) $_POST['postid'];
|
||||||
$UserID = (int) $_GET['userid'];
|
$UserID = (int) $_POST['userid'];
|
||||||
$Key = (int) $_GET['key'];
|
$Key = (int) $_POST['key'];
|
||||||
$UserInfo = user_info($UserID);
|
$UserInfo = user_info($UserID);
|
||||||
$DB -> query("SELECT
|
$DB -> query("SELECT
|
||||||
tc.Body,
|
tc.Body,
|
||||||
|
Loading…
Reference in New Issue
Block a user