PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old January 28th, 2007, 03:36 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
Cant acces phpauction XL 2 admin area

I,

I have setup the phpauction xl 2 but seem that i cant connect to the admin area of phpauction.

Basicaly Evrytime i go to the admin area it askme to create a admin username and password, i have tryied loads of times and always the same screen. I went to my database to check if its writting something in the proper admin table and seems nothing is being iserted there.

I tried even to manualy to input the username and admin password but agan nothing.. it seems that the phpaucting uses a security algorithm calle md5_prefix that i cant understand..

If someone knows abouth this problem that can give me some light i would appreciate. I leave you with the login.php from admin area...

php Code:
Original - php Code
  1.  
  2. <?#//v.2.0.0
  3. #///////////////////////////////////////////////////////
  4. #// COPYRIGHT 2004 Phpauction.org ALL RIGHTS RESERVED//
  5. #///////////////////////////////////////////////////////
  6.  
  7. session_name("PHPAUCTIONADMIN");
  8.  
  9.  
  10.  
  11. require('../includes/messages.inc.php');
  12. require('../includes/config.inc.php');
  13.  
  14. if($HTTP_POST_VARS[action] == "insert" && basename($HTTP_REFERER) == basename($PHP_SELF))
  15. {
  16. #// Additional security check
  17. $RR = mysql_query("SELECT id from PHPAUCTIONXL_adminusers");
  18. if(mysql_num_rows($RR) > 0)
  19. {
  20. print "Fatal error: user cannot be inserted - one or more administrators are already present in
  21. the database.<BR><A HREF=login.php>login page</A>";
  22. }
  23. $md5_pass=md5($MD5_PREFIX.$password);
  24. $query = "insert into PHPAUCTIONXL_adminusers values (10,'$username', '$md5_pass',
  25. '20011224', '20020110093458', 1)";
  26. $result = @mysql_query($query);
  27. #// Redirect
  28. Header("Location: admin.php");
  29. }
  30. $query = "select MAX(id) from PHPAUCTIONXL_adminusers";
  31. $result = @mysql_query($query);
  32. while($row = mysql_fetch_row($result))
  33. {
  34. $id = $row[0] + 1;
  35. }
  36. if($id==1)
  37. {
  38. $id=0;
  39. require("./header.php"); ?>
  40. <TABLE BORDER=0 WIDTH=650 CELLPADDING=0 CELLSPACING=0
  41.  
  42. BGCOLOR="#FFFFFF" ALIGN="CENTER">
  43. <TR>
  44. <TD><CENTER><FONT FACE="Verdana, Arial, Helvetica,
  45. sans-serif" SIZE="4"><BR>
  46. <BR>
  47.  
  48. <FORM NAME=login ACTION=login2.php METHOD=POST>
  49. <TABLE WIDTH="410" BORDER="0" CELLSPACING="0"
  50.  
  51. CELLPADDING="1" BGCOLOR="#336699">
  52. <TR>
  53. <TD>
  54. <TABLE WIDTH=100% CELLPADDING=3
  55.  
  56. ALIGN="CENTER" CELLSPACING="0" BORDER="0" BGCOLOR="#FFFFFF">
  57. <TR BGCOLOR="#336699">
  58. <TD COLSPAN="2"
  59.  
  60. ALIGN=CENTER><FONT FACE="Tahoma, Verdana" SIZE="2" COLOR="#FFFFFF"><B>
  61. :: Please create
  62.  
  63. your username and password ::</B></FONT>
  64. <? print "$pw=$md5_pass"; ?>
  65. </TD>
  66. </TR>
  67. <TR>
  68. <TD></TD>
  69. <TD> <FONT
  70.  
  71. FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2" COLOR=red>
  72.  
  73.  
  74.  
  75. <? print $ERR; ?>
  76. </FONT>
  77.  
  78. </TD>
  79. </TR>
  80. <TR>
  81. <TD ALIGN=right>
  82.  
  83. <FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2">
  84. <? print
  85.  
  86. $MSG_003; ?>
  87. </FONT>
  88.  
  89. </TD>
  90. <TD>
  91. <INPUT
  92.  
  93. TYPE=TEXT NAME=username SIZE=20 >
  94. </TD>
  95. </TR>
  96. <TR>
  97. <TD ALIGN=right>
  98.  
  99. <FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2">
  100. <? print
  101.  
  102. $MSG_004; ?>
  103. </FONT>
  104.  
  105. </TD>
  106. <TD>
  107. <INPUT
  108.  
  109. TYPE=password NAME=password SIZE=20 >
  110. </TD>
  111. </TR>
  112. <TR>
  113. <TD></TD>
  114. <TD>
  115. <INPUT
  116.  
  117. TYPE=submit NAME=action VALUE="insert">
  118. </TD>
  119. </TR>
  120. </TABLE>
  121. </TD>
  122. </TR>
  123. </TABLE>
  124. </FORM>
  125. </font>
  126. </CENTER>
  127. </TD>
  128. </TR>
  129. </TABLE>
  130.  
  131.  
  132. <?
  133.  
  134. }
  135. else { $id=1;
  136. #//
  137.  
  138. if($HTTP_POST_VARS[action] == "login")
  139.  
  140. {
  141.  
  142. if(strlen($HTTP_POST_VARS[username]) == 0 ||
  143.  
  144. strlen($HTTP_POST_VARS[password]) == 0
  145.  
  146. )
  147.  
  148. {
  149.  
  150. $ERR = $ERR_047;
  151.  
  152. }
  153.  
  154. else
  155.  
  156. {
  157.  
  158. $query = "select * from PHPAUCTIONXL_adminusers where
  159. username='$HTTP_POST_VARS[username]' and
  160. password='".md5($MD5_PREFIX.$HTTP_POST_VARS[password])."'";
  161.  
  162. $res = @mysql_query($query);
  163.  
  164. if(!$res)
  165.  
  166. {
  167.  
  168. print "Error: $query<BR>".mysql_error();
  169.  
  170.  
  171. }
  172.  
  173. if(mysql_num_rows($res) == 0)
  174.  
  175. {
  176.  
  177. $ERR = $ERR_048;
  178.  
  179. }
  180.  
  181. else
  182.  
  183. {
  184.  
  185. $admin = mysql_fetch_array($res);
  186.  
  187.  
  188.  
  189. #// Set sessions vars
  190.  
  191. $PHPAUCTION_ADMIN_LOGIN = $admin[id];
  192.  
  193. $PHPAUCTION_ADMIN_USER = $admin[username];
  194.  
  195. session_name("PHPAUCTIONADMIN");
  196.  
  197. session_register("PHPAUCTION_ADMIN_LOGIN","PHPAUCT ION_ADMIN_USER");
  198.  
  199.  
  200.  
  201. #// Update last login information for this user
  202.  
  203. $query = "update PHPAUCTIONXL_adminusers set
  204. lastlogin='".date("YmdHis")."' where username='$admin[username]'";
  205.  
  206. $rr = mysql_query($query);
  207.  
  208. if(!$rr)
  209.  
  210. {
  211.  
  212. print "Error: $query<BR>".mysql_error();
  213.  
  214.  
  215. }
  216.  
  217.  
  218.  
  219. #// Redirect
  220.  
  221. Header("Location: admin.php");
  222.  
  223.  
  224. }
  225.  
  226. }
  227.  
  228. }
  229.  
  230.  
  231.  
  232. require("./header.php");
  233.  
  234.  
  235.  
  236. ?>
  237.  
  238.  
  239.  
  240. <TABLE BORDER=0 WIDTH=650 CELLPADDING=0 CELLSPACING=0 BGCOLOR="#FFFFFF" ALIGN="CENTER">
  241.  
  242. <TR>
  243.  
  244. <TD>
  245.  
  246. <CENTER>
  247.  
  248. <FONT FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="4"><BR>
  249.  
  250. <BR>
  251.  
  252. <? if(!$action || ($action && $ERR)) : ?>
  253.  
  254. <FORM NAME=login ACTION=login.php METHOD=POST>
  255.  
  256. <TABLE WIDTH="415" BORDER="0" CELLSPACING="0"
  257.  
  258. CELLPADDING="1" BGCOLOR="#336699">
  259.  
  260. <TR>
  261.  
  262. <TD>
  263.  
  264. <TABLE WIDTH=100% CELLPADDING=4
  265.  
  266. ALIGN="CENTER" CELLSPACING="0" BORDER="0" BGCOLOR="#FFFFFF">
  267.  
  268. <TR BGCOLOR="#33CC33">
  269.  
  270. <TD COLSPAN="2"
  271.  
  272. ALIGN=CENTER><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="1"
  273.  
  274. COLOR="#FFFFFF"><B>:: PLEASE LOG IN WITH THE USERNAME & PASSWORD YOU CREATED ::</B></FONT></TD>
  275.  
  276. </TR>
  277.  
  278. <TR>
  279. <TD></TD>
  280. <TD> <FONT
  281.  
  282. FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2" COLOR=red>
  283. <? print "$md5_pass = md5($md5_prefix, password)"; ?>
  284. <? print $ERR; ?>
  285. </FONT>
  286.  
  287. </TD>
  288. </TR>
  289. <TR>
  290. <TD ALIGN=right>
  291.  
  292. <FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2">
  293. <? print
  294.  
  295. $MSG_003; ?>
  296. </FONT>
  297.  
  298. </TD>
  299. <TD>
  300. <INPUT
  301.  
  302. TYPE=TEXT NAME=username SIZE=20 >
  303. </TD>
  304. </TR>
  305. <TR>
  306. <TD ALIGN=right>
  307.  
  308. <FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2">
  309. <? print
  310.  
  311. $MSG_004; ?>
  312. </FONT>
  313.  
  314. </TD>
  315. <TD>
  316. <INPUT
  317.  
  318. TYPE=password NAME=password SIZE=20 >
  319. </TD>
  320. </TR>
  321. <TR>
  322. <TD></TD>
  323. <TD>
  324. <INPUT
  325.  
  326. TYPE=submit NAME=action VALUE="login">
  327. </TD>
  328. </TR>
  329. </TABLE>
  330. </TD>
  331. </TR>
  332. </TABLE>
  333. </FORM>
  334. <? endif; ?>
  335. </font>
  336. </CENTER>
  337. </TD>
  338. </TR>
  339. </TABLE>
  340. <? } require("./footer.php"); ?>


Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Cant acces phpauction XL 2 admin area


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 8 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek