[ Index ] |
|
Code source de PHP NUKE 7.9 |
1 <?php 2 3 /************************************************************************/ 4 /* PHP-NUKE: Web Portal System */ 5 /* =========================== */ 6 /* */ 7 /* Copyright (c) 2005 by Francisco Burzi */ 8 /* http://phpnuke.org */ 9 /* */ 10 /* This program is free software. You can redistribute it and/or modify */ 11 /* it under the terms of the GNU General Public License as published by */ 12 /* the Free Software Foundation; either version 2 of the License. */ 13 /************************************************************************/ 14 15 if (!defined('ADMIN_FILE')) { 16 die ("Access Denied"); 17 } 18 19 global $prefix, $db, $admin_file; 20 $aid = substr("$aid", 0,25); 21 $row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'")); 22 if ($row['radminsuper'] == 1) { 23 24 /*********************************************************/ 25 /* Referer Functions to know who links us */ 26 /*********************************************************/ 27 28 function hreferer() { 29 global $bgcolor2, $prefix, $db, $admin_file; 30 include ("header.php"); 31 GraphicAdmin(); 32 OpenTable(); 33 echo "<center><font class=\"title\"><b>" . _HTTPREFERERS . "</b></font></center>"; 34 CloseTable(); 35 echo "<br>"; 36 OpenTable(); 37 echo "<center><b>" . _WHOLINKS . "</b></center><br><br>" 38 ."<table border=\"0\" width=\"100%\">"; 39 $result = $db->sql_query("SELECT rid, url from " . $prefix . "_referer"); 40 while ($row = $db->sql_fetchrow($result)) { 41 $rid = intval($row['rid']); 42 $url = filter($row['url'], nohtml); 43 $url2 = urlencode($url); 44 echo "<tr><td bgcolor=\"$bgcolor2\"><font class=\"content\">$rid</td>" 45 ."<td bgcolor=\"$bgcolor2\"><font class=\"content\"><a href=\"index.php?url=$url2\" target=\"_blank\">$url</a></td></tr>"; 46 } 47 echo "</table>" 48 ."<form action=\"".$admin_file.".php\" method=\"post\">" 49 ."<input type=\"hidden\" name=\"op\" value=\"delreferer\">" 50 ."<center><input type=\"submit\" value=\"" . _DELETEREFERERS . "\"></center>"; 51 CloseTable(); 52 include ("footer.php"); 53 } 54 55 function delreferer() { 56 global $prefix, $db, $admin_file; 57 $db->sql_query("delete from " . $prefix . "_referer"); 58 Header("Location: ".$admin_file.".php?op=adminMain"); 59 } 60 61 switch($op) { 62 63 case "hreferer": 64 hreferer(); 65 break; 66 67 case "delreferer": 68 delreferer(); 69 break; 70 71 } 72 73 } else { 74 echo "Access Denied"; 75 } 76 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 11:11:59 2007 | par Balluche grâce à PHPXref 0.7 |