Al Brookbanks Posted March 20, 2004 Share Posted March 20, 2004 Name: admin.rar Version: 2.0 Author: Joker Short Description: Add/remove admin Long Description: 1. You can add/remove admin interface users, add groups, put users different to groups. You can see if some hacker try many times to login you system. Rar file contain screenshots about this mod. [Download File] Link to comment Share on other sites More sharing options...
Guest [email protected] Posted July 11, 2004 Share Posted July 11, 2004 Did anyone find mistake in this mod? Link to comment Share on other sites More sharing options...
Guest Joker Posted August 9, 2004 Share Posted August 9, 2004 Installation guide Updated: 21.02.2005 INSTALL OR UPGRADE FROM 1.0 OR 1.15 VERSION 1. Backup files: admin/login.php admin/header.inc.php admin/nav.php admin/index.php admin/forgot_pass.php ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1. Copy all files in zip file to admin and admin/images catalog ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2. Change in ADMIN/NAV.PHP lines: ['<?echo$la_nav_ip;?>', '<?echo"$site_url/admin/ip.php";?>'], ['<?echo$la_nav_pass;?>', '<?echo"$site_url/admin/password.php";?>'], with this: ['<?echo"Admins";?>', '<?echo"$site_url/admin/admin_users.php";?>'], ['<?echo"Groups";?>', '<?echo"$site_url/admin/admin_groups.php";?>'], ['<?echo$la_nav_ip;?>', '<?echo"$site_url/admin/ip.php";?>'], ['<?echo"Hack Log";?>', '<?echo"$site_url/admin/admin_hacklog.php";?>'], ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3. Save this code to install.php, copy it to store catalog and run this: <html> <head> <title>CubeCart admin MOD Installation by Joker</title> <style> BODY {font-family: Tahoma, Arial, Veranda; font-size: 8pt; font-weight: normal;} TEXTAREA,.TEXTBOX,.FILE {background-color: #FFFFFF; border: #7F9DB9 1px solid; color: black; font-family: Tahoma, Arial, Veranda; font-size: 8pt; font-weight: normal;} .SUBMIT {background-color: #cadeee; border: #7F9DB9 1px solid; color: black; font-family: Tahoma, Arial, Veranda; font-size: 8pt; font-weight: bold;} TABLE, TR, TD         {font-family:Tahoma, Arial, Veranda; font-size: 8pt; color:#000000} H2         {font-family:Tahoma, Arial, Veranda; font-size: 14pt; color:#000000} a:link, a:visited, a:active  {text-decoration:underline; color:#000000} a:hover {text-decoration:none; color:#CC0000} </style> </head> <body bgcolor="#ffffff"> <?php include("admin/config.php"); if(!$submit) { ?> <b><FONT COLOR="RED">WARNING:</FONT> If ADMIN MOD already exists with same prefix in the database it will be replaced!</b></br></br></br> <form method="post" action="install.php?step=1" target="_self"> <table align="left" width="450" bordercolor="#cadeee" cellspacing="0" border="1"> <tr><td colspan="2" height="20" background="images/bevel_bg.gif" bgcolor="#cadeee"><b>Admin Login:<b></td></tr> <tr><td width="50%"><b>Your e-mail address:</b></td><td width="250"><input type="text" class="textbox" name="email" size="20"></td></tr> <tr><td width="50%"><b>Username:</b></td><td width="250"><input type="text" class="textbox" name="adm_user" size="20"></td></tr> <tr><td width="50%" valign="top"><b>Password:</b></td><td width="250"><input type="password" name="adm_pass" class="textbox" size="20"><br>(PASSWORD STRONGLY RECOMMENDED TO BE 8 CHARACTERS OR OVER AND CONTAIN AT LEAST 1 NUMBER!)</td></tr> <tr><td width="50%"><b>Confirm Password:</b></td><td width="250"><input type="password" name="adm_pass_cont" class="textbox" size="20"></td></tr> <tr><td width="50%"> </td> <td width="100%"><input type="submit" value="Install >>" name="submit"></td></tr> </table> </form> <? } if($step=1 && $submit) {   // make sure passwords match and and encrypt result if ($adm_pass!=$adm_pass_cont) {  Echo "<p><div align='left'><font color=red><b>The passwords entered do not match!</b><br><br><a href='install.php'>Please try again!</font></p>";  Exit; } $adm_pass_enc = md5($adm_pass); mysql_query ("DROP TABLE IF EXISTS `".$prefix."store_adm_group`;") or die("Error: " . mysql_error()); mysql_query ("CREATE TABLE `".$prefix."store_adm_group` (  `group_id` int(32) NOT NULL auto_increment,  `group_name` varchar(15) default NULL,  PRIMARY KEY  (`group_id`) ) TYPE=MyISAM;") or die("Error: " . mysql_error()); mysql_query ("INSERT INTO `".$prefix."store_adm_group` (`group_id`, `group_name`) VALUES (1, 'System');") or die("Error: " . mysql_error()); mysql_query ("DROP TABLE IF EXISTS `".$prefix."store_adm_log`;") or die("Error: " . mysql_error()); mysql_query ("CREATE TABLE `".$prefix."store_adm_log` (  `id` int(11) NOT NULL auto_increment,  `user` varchar(32) NOT NULL default '',  `host` varchar(100) NOT NULL default '',  `address` varchar(100) NOT NULL default '',  `agent` varchar(100) NOT NULL default '',  `date` datetime default NULL,  `referer` varchar(200) NOT NULL default '',  PRIMARY KEY  (`id`),  KEY `id` (`id`) ) TYPE=MyISAM;") or die("Error: " . mysql_error()); mysql_query ("DROP TABLE IF EXISTS `".$prefix."store_adm_users`;") or die("Error: " . mysql_error()); mysql_query ("CREATE TABLE `".$prefix."store_adm_users` (  `id` int(32) NOT NULL auto_increment,  `user` varchar(32) NOT NULL default '',  `pass` varchar(32) NOT NULL default '',  `email` varchar(40) NOT NULL default '',  `date` varchar(10) NOT NULL default '',  `time` varchar(10) NOT NULL default '',  `change_pass` varchar(10) NOT NULL default '',  `group_user` varchar(10) NOT NULL default '0',  `user_right` int(1) NOT NULL default '0',  `user_disable` tinyint(1) NOT NULL default '0',  PRIMARY KEY  (`id`) ) TYPE=MyISAM;") or die("Error: " . mysql_error()); mysql_query ("INSERT INTO `".$prefix."store_adm_users` (`id`, `user`, `pass`, `email`, `date`, `change_pass`, `group_user`, `user_right`, `user_disable`) VALUES (1, '$adm_user', '$adm_pass_enc', '$email', '20050131', '20050131', '1', 0, 0);") or die("Error: " . mysql_error()); $step = 2; } if($step==2){ {echo"<br><font color=green size=2><b>CONGRATULATIONS INSTALLATION IS NOW COMPLETE!</b><br></font><BR> <br><font color=red size=2><b>Please DELETE install.php from your server!</b> <br><font size=2><b><A HREF=\"admin/\">Login to admin now and start building your store >></a></b>";} }// end step 3 ?> 4. Open admin/index.php After line: echo"<h2>$la_index_title!</h2><blockquote> Add line: include("expired.php"); If you find mistakes in this mod, then public it in cubecart phorum! Brgrds, Joker Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2004 Share Posted August 10, 2004 Joker, Suggested doc change... Step 1 says backup admin/style.css twice (??) Step 2 also overwrites admin/header.inc.php & admin/index.php so they should be backed up in step 1 too cheers Pete Link to comment Share on other sites More sharing options...
Guest Joker Posted August 10, 2004 Share Posted August 10, 2004 Thank you pgarriga, I corrected mistakes! Brgrds, Joker Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2004 Share Posted August 10, 2004 Joker, Your install script has an error here mysql_query ("INSERT INTO `test_store_adm_users` (`id`, It should be mysql_query ("INSERT INTO `".$prefix."store_adm_users` (`id`, other than that, it worked Ok for me...... Link to comment Share on other sites More sharing options...
Guest Joker Posted August 12, 2004 Share Posted August 12, 2004 Thank you, I corrected this mistake too in my script! Link to comment Share on other sites More sharing options...
Guest kencash Posted August 12, 2004 Share Posted August 12, 2004 hi, just tested the forgot password function with this script. detected the following error: Your new, temporary password has been sent to: this is the site email instead of the admin's email address Please advise how should i fix this? Thanks kenCash Link to comment Share on other sites More sharing options...
Guest Joker Posted August 12, 2004 Share Posted August 12, 2004 Yes, this is small mistake ;o))) Anyway forgot_password.php send e-mail's to right persons. If enyone want correct this small mistake, then open forgot_password.php, line 77: echo "<br><br><p align=\"center\"><b>$la_fp_fog_pass</b><br><br>$la_fp_email_new_temp <b>$site_email</b><Br><Br>$la_fp_mail_change</p>"; change with this: echo "<br><br><p align=\"center\"><b>$la_fp_fog_pass</b><br><br>$la_fp_email_new_temp <b>$email</b><Br><Br>$la_fp_mail_change</p>"; Thank you kencash. Link to comment Share on other sites More sharing options...
Guest kencash Posted August 14, 2004 Share Posted August 14, 2004 here's another question, what's the difference between sysop & poweruser? Thanks KenCash Link to comment Share on other sites More sharing options...
Guest Joker Posted August 14, 2004 Share Posted August 14, 2004 Poweruser can't delete other users and that's all in 2.0 version. I did't add more features to this MOD version. Soon will be out new version of cubecart and I think that Brooky add admin mod to new version. Anyway if I update my MOD, I don't have possible update or add new files to cubecart page. I wrote about that in phorum http://www.cubecart.com/site/forums/index.php?showtopic=489 and send e-mail to Brooky, but no reaction. Brgrds, Joker Link to comment Share on other sites More sharing options...
Guest Posted September 16, 2004 Share Posted September 16, 2004 Warning: Supplied argument is not a valid MySQL result resource in c:\apache\htdocs\cube\admin\login.php on line 67 Link to comment Share on other sites More sharing options...
Guest Posted December 19, 2004 Share Posted December 19, 2004 I got the same error????? Please help I am locked out of my site now and i need to finish it Link to comment Share on other sites More sharing options...
Guest Joker Posted December 19, 2004 Share Posted December 19, 2004 Use my install.php scipt to add this mod: I think that you didn't add user to admin database. In admin database must always by one user! http://www.cubecart.com/site/forums/index.php?showtopic=1484 Brgrds, Joker Link to comment Share on other sites More sharing options...
Guest Friendsinpool Posted January 17, 2005 Share Posted January 17, 2005 Can someone give a hand of helping me install this mod? Im a little bit confuzed from all the , This needs fixed, its fixed, this needs fixed, its fixed.. lol I dont need ya to install it, just wanna get a few comments as to if I have the most updated or not.. Link to comment Share on other sites More sharing options...
Guest Joker Posted January 17, 2005 Share Posted January 17, 2005 Don't use installallation guide in admin.rar fail, but use installation guide in this phorum with title "Installation guide" Brgrds, Joker Link to comment Share on other sites More sharing options...
Guest Posted February 22, 2005 Share Posted February 22, 2005 i cant find this one on the new index.php Its only in the old index.php Open admin/index.php After line: echo"<h2>$la_index_title!</h2><blockquote> Add line: include("expired.php"); If you find mistakes in this mod, then public it in cubecart phorum! Thanks Link to comment Share on other sites More sharing options...
Recommended Posts