$db->set("image = '{$image}'"); $db->set("url = '{$url}'"); $db->set("rang = '{$rang}'"); $db->where("id = '{$id}'"); $db->exec(); /*** redirection ***/ js_goto("?page=sponsors&op=admin"); } } elseif ($op == 'admin') { /*** verification securite ***/ if ($grade['a'] != 'a' && $grade['b'] != 'b' && $grade['s'] != 's') { js_goto($PHP_SELF); } echo "<p class=title>.:: {$strAdminSponsors} ::.</p>"; echo "<table cellspacing=0 cellpadding=2 border=0>"; echo "<tr><td class=title>" . nb_sponsors() . " {$strSponsors}</td></tr>"; echo "</table>"; $db->select("*"); $db->from("{$dbprefix}sponsors"); $db->order_by("rang"); $sponsors = $db->exec(); if ($db->num_rows($sponsors) != 0) { echo "<table border=0 cellpadding=0 cellspacing=0 class=bordure1><tr><td>"; echo "<table cellspacing=1 cellpadding=2 border=0>"; echo "<tr><td class=header>{$strRang}</td><td class=header>{$strNom}</td><td class=header>{$strUrl}</td><td class=header>{$strImage}</td></tr>"; while ($sponsor = $db->fetch($sponsors)) { echo "<tr>"; echo "<td class=text align=center>{$sponsor->rang}</td>"; echo "<td class=text>"; echo "<div style=\"clear: both\"><div style=\"float: left\"><a href=?page=sponsors&id={$sponsor->id}>" . stripslashes($sponsor->nom) . "</a></div>"; echo "<div style=\"float: right\"> <a href=\"?page=sponsors&op=modify&id={$sponsor->id}\">[{$strE}]</a> <a href=?page=sponsors&op=delete&id={$sponsor->id} onclick=\"return confirm('{$strConfirmEffacerSponsor}');\">[{$strS}]</a></div>";
| | | You should have received a copy of the GNU General Public License | | along with AdminBot; if not, write to the Free Software Foundation, | | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | | | +---------------------------------------------------------------------+ | Authors: Li0n <*****@*****.**> | | RV <*****@*****.**> | | Gougou | +---------------------------------------------------------------------+ */ if (eregi("block_sponsors.php", $_SERVER['PHP_SELF'])) { die("You cannot open this page directly"); } global $db, $dbprefix, $config, $s_joueur, $s_theme, $strSponsors; if ($config['sponsors'] && nb_sponsors() != 0) { theme_openblock("<img src=\"themes/{$s_theme}/images/icon_sponsors.gif\" align=\"absmiddle\" alt=\"sponsors\"> {$strSponsors}"); echo '<div align="center"><marquee onmouseout="this.start()" onmouseover="this.stop()" width="110" scrolldelay="40" scrollamount="1" height="160" direction="up" behavior="scroll">'; $db->select("*"); $db->from("{$dbprefix}sponsors"); $db->order_by("rang"); $sponsors = $db->exec(); if ($db->num_rows($sponsors) != 0) { while ($sponsor = $db->fetch($sponsors)) { list($width, $height, $type, $attr) = @getimagesize("images/sponsors/{$sponsor->image}"); if ($width > 100) { $width = "width=100"; } else { $width = ''; } echo "<a href=\"?page=sponsors&id={$sponsor->id}\"><img border=\"0\" title=\"{$sponsor->nom}\" {$width} src=\"images/sponsors/{$sponsor->image}\" alt=\"\"></a><br /><br />";