title image


Smiley Re: Re: PHP Problem
ok das sind ein paar spalten davor bis zu der oben angegebenen spalte:







function logoutcookie() {

setcookie("uid", "null", time(), "/");

setcookie("pass", "null", time(), "/");

}



function loggedinorreturn() {

global $CURUSER;

if (!$CURUSER) {

header("Refresh: 0; url=account-login.php?returnto=" . urlencode($_SERVER["REQUEST_URI"]));

exit();

}

}



function adminonly() {

global $CURUSER;

if (get_user_class() < UC_ADMINISTRATOR) {

stderr("ACCESS DENIED", "Sorry this page is only for Administrators.");

exit();

}

}



function modonly() {

global $CURUSER;

if (get_user_class() < UC_MODERATOR) {

stderr("ACCESS DENIED", "Sorry this page is only for Super Moderators.");

exit();

}

}



function jmodonly() {

global $CURUSER;

if (get_user_class() < UC_JMODERATOR) {

stderr("ACCESS DENIED", "Sorry this page is only for Moderators.");

exit();

}

}



function deletetorrent($id) {

global $torrent_dir;

mysql_query("DELETE FROM torrents WHERE id = $id");

foreach(explode(".","peers.files.comments.ratings") as $x)

mysql_query("DELETE FROM $x WHERE torrent = $id");

unlink("$torrent_dir/$id.torrent");

}



function pager($rpp, $count, $href, $opts = array()) {





wäre cool wenn du mir helfen könntest

geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: