Welcome Guest ( Log In | Register)



2 Pages V  < 1 2  
Reply to this topicStart new topic
> Could Someone Help Me With This?
chappill
post May 9 2008, 03:46 PM
Post #11


Member [Level 2]
*****

Group: [HOSTED]
Posts: 88
Joined: 21-April 08
From: Errm...this maps dodgey...i think im in the desert...
Member No.: 61,127



Gahhh got another problem, where it says:
CODE

he database already exists, do you want to use it, or delete it?<br>
<a href="install.php?step=1&action=use_old">Use It</a><br>
<a href="install.php?step=1&action=delete_old">Delete It</a><br>

I click use old and it doesn't forward the page! It's miffing me off.
Go to the top of the page
 
+Quote Post
galexcd
post May 9 2008, 08:37 PM
Post #12


Define:EVIL PROGRAMMER (ē'vəl prō'grăm'ər)- n. An organism that converts caffeine into evil software.
*********

Group: [HOSTED]
Posts: 975
Joined: 25-September 05
From: The dungeon deep below the foundation of trap17
Member No.: 12,251



Well it looks like its more than just the step variable that is being passed through the url, so just so we do not have to keep diong this remove the $step=$_GET['step']; and replace it with the following code:

CODE
foreach($_GET as $geta=>$getb) $$geta=$getb;


This should resolve all of the problems because this line of code will forward all of the values in the get array to regular php variables. I DO NOT RECOMMEND DOING THIS NORMALLY. This can be a major security risk to your program if you do not know how to properly parse through your user's input. I am only recommending this in this case because it is the installer only, and the file will not be used after installing.
Go to the top of the page
 
+Quote Post
chappill
post May 9 2008, 09:32 PM
Post #13


Member [Level 2]
*****

Group: [HOSTED]
Posts: 88
Joined: 21-April 08
From: Errm...this maps dodgey...i think im in the desert...
Member No.: 61,127



Hmmmm worked the furthest so far but now:
CODE

<?php

}
if($step==3){

//CHECK SUBMITTED INFORMATION
if((!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$",$mail)) || (!isset($pass)) || (!isset($pass2)) || (empty($pass)) || (empty($pass2)) || ($pass!=$pass2) || (!isset($user)) || (empty($user)) || (!isset($sitename)) || (empty($sitename)) || (!eregi("^http://+[_a-z0-9-]*",$siteurl)) || (!eregi("^http://+[_a-z0-9-]*",$pollurl))){

?>


That bit (moving to step 3) doesn't work!!! This is like the script from hell, I'll turn it into a challange 3 hosting credits to the solver of my problem! Lol.
Go to the top of the page
 
+Quote Post
galexcd
post May 10 2008, 06:29 AM
Post #14


Define:EVIL PROGRAMMER (ē'vəl prō'grăm'ər)- n. An organism that converts caffeine into evil software.
*********

Group: [HOSTED]
Posts: 975
Joined: 25-September 05
From: The dungeon deep below the foundation of trap17
Member No.: 12,251



So what exactly is it doing when you try to go to step 3? Where exactly did you get this script anyway? Perhaps its time to drop this script and go with one written by somebody more competent.
Go to the top of the page
 
+Quote Post
chappill
post May 10 2008, 09:00 AM
Post #15


Member [Level 2]
*****

Group: [HOSTED]
Posts: 88
Joined: 21-April 08
From: Errm...this maps dodgey...i think im in the desert...
Member No.: 61,127



Yeah i got it off a mate who said it worked fine :S I'll drop it now. Thanks for the help though, I'll try work on it myself.

And i looked and i found the problem!

CODE

<tr id="submitrow">
<td bgcolor="#000000" align="center" colspan="2">
<input type="submit" value="Finish Installation">


It doesn't tell the page to move on to page 3! I'll try do that because its in html.

This post has been edited by chappill: May 10 2008, 09:08 AM
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic

 



- Lo-Fi Version Time is now: 27th July 2008 - 02:04 AM