Jump to content

d22552000

Members
  • Posts

    535
  • Joined

  • Last visited

    Never

Posts posted by d22552000

  1. lol then I get a different erorr, tried that.

     

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Inetpub\wwwroot\Registration\vbcreate.php on line 38
    

     

    It doenst expect the $p variable cause the first line:

    $filename = "C:/Inetpub/wwwroot/";
    

    doesnt close if I have a / and then a quote.  The / denotes to escape the " -,-.

     

    Got any other suggestions?

  2. if the forms are in frames the master javascript::onclick(submit.form); wont submit anything.

     

    The easiest way to do this is have an automatically submitting form :).  Use javascript delay of 1 and ontimer do (form.submit).  IDK javascript too well so I cant write up the code, but you get the point.

     

    Have fun |+|4)(0R1|\|g (Haxoring)

  3. Problem:

     

    no matter how I do a full path it wont take it because of the special uses of \...

     

    $filename = "C:/Inetpub\wwwroot\";
    $filename = $filename . $p;
    $filename = $filename . "\forum\includes\config.php";
    

    give me:

    Warning: Unexpected character in input: '\' (ASCII=92) state=1 in C:\Inetpub\wwwroot\* on line 36
    
    Parse error: syntax error, unexpected T_STRING in C:\Inetpub\wwwroot\* on line 36
    

  4. YAY!! thank you..

     

    I will try it before I say if its solved or not...

     

    $d = "C:/Inetpub/wwroot/" . $_CUSTOMER['path'] . "/forum";
    $s = "C:/Inetpub/installers/forum";
    COPY_RECURSIVE_DIRS($s,$d);
    
    function COPY_RECURSIVE_DIRS($dirsource, $dirdest)
    { // recursive function to copy
    // all subdirectories and contents:
    if(is_dir($dirsource))$dir_handle=opendir($dirsource);
    mkdir($dirdest."/".$dirsource, 0750);
    while($file=readdir($dir_handle))
    {
    if($file!="." && $file!="..")
    {
    if(!is_dir($dirsource."/".$file)) copy ($dirsource."/".$file, $dirdest."/".$dirsource."/".$file);
    else COPY_RECURSIVE_DIRS($dirsource."/".$file, $dirdest);
    }
    }
    closedir($dir_handle);
    return true;
    }
    

  5. soo.. how do I do it?

    copy only copies ONE file...

     

    I want to copy a folder, subfolder, files, and subfiles.  I don't care about attributes.

    I thought about making the folder a zip, and then using extract but that was confusing and took too long on the server.

     

    so what do I do?  Is there a script that will parse the dir and COPY all the files?

  6. function putcombo($combo,$outcome)
    {
    
    $g_link = mysql_connect( '127.0.0.1', 'root', '') or die('Could not connect to server.' );
    mysql_select_db('roleplay', $g_link) or die('Could not select database.');
    
    $sql = "
    INSERT INTO `roleplay`.`roll` (
    `ID` ,
    `combo` ,
    `outcome` ,
    `when` 
    )
    VALUES (
    NULL , '" . $combo . "', '" . $outcome . "', NOW( ) 
    )
    ";
    
    $result = mysql_query($sql);
    
           mysql_close($g_link);
    }
    

     

    I feed it ("1 + 1",2);

    but in PHPMYADMIN no rows have been added.

     

    My combo row is a 255 size varchar

    and my outcome row is a 31 size int

     

    EDIT: it was the size of my MYSQL combo table needing to be 1023 bytes long.

  7. For the life of me I can't figure out what's wrong...

     

    function getcombo($ID)
    {
    $sql = "SELECT * FROM 'roll' WHERE `ID`=" . $ID . "";
    $result = mysql_query($sql);
    
        if (!$result) {
            die('Invalid query: ' . mysql_error());
        } else {
            while ($row = mysql_fetch_assoc($result)) {
    
                echo "Roll ID: ";
                echo $row['ID'];
                echo "<br /><br />";
    
                echo $row['combo'];
                echo " = ";
    
                echo $row['outcome'];
                echo "<br /><br />";
    
                echo "Date Rolled: ";
                echo $row['when'];
                echo "<br />";
    
            }
        }
    }
    

     

    and when I run this function I get:

     

    Parse error: syntax error, unexpected T_STRING in C:\Inetpub\wwwroot\db-roll.php on line 24
    

     

    This points to the line:

     

    echo $row['ID'];
    

     

    Please tell me why it isn't working.

     

    EDIT: after using this sites syntax highlighter it look slike I forgot to close a quotation on the result string... but I don't see it..?

     

    EDIT:  I dont know why, but when I put an extra " at the end of the function it passed -,- thanks for the syntax highlighter.

     

    Do you know of any programs that are close to this WITHOUT their automatic preview?

  8. I host my own site from my comptuer, but have never goten an smpt server to work (i think y isp blocks it)

     

    In any case, you might want to use an external SMPT server for now.. try this:

     

    Useraname: ???@gmail.com

    password: ????

     

    smtp server: mail.gmail.com

    smtp port; 25

     

    im not sure whree you put the username and password stuff, but it would be in the mail call php file.

  9. What is does:

     

    Checks if the script being run is easythread (i know that part works)

    Tries to stop the page loading if the user is (1) a Guest. (not working)

    Tries to stop the page loading if the user is (2) a NUser. (not working)

    If all else fails, redirect to the indes as a fallback. (not working)

     

    <if condition="THIS_SCRIPT == 'easythread'">
    <if condition="is_member_of($post[userinfo], 1)">
     <script type="text/javascript">
      document.execCommand('Stop')
      window.stop()
     </script>
    <script type="text/javascript">document.location.href='index.php'</script>
    </if>
    
    <if condition="is_member_of($post[userinfo], 2)">
     <script type="text/javascript">
      document.execCommand('Stop')
      window.stop()
     </script>
    <script type="text/javascript">document.location.href='index.php'</script>
    </if>
    </if>
    

     

    so... why can't it detect if the user is a member? I think the command is_member_of, is fake, but It was the only result on many searches.

     

    I also tried this but it didnt work:

     

    if ($my->id) {
    die ('You are not allowed here, you are not logged in.');
    }
    

      But that displayed the message every time...

  10. if (!empty($_GET['url'])) {
    echo "
    <head>
    <meta http-equiv=\"refresh\" content=\"3;./" . $_GET['url'] . "\">
    </head>
    <body>
    You are being redirect to:<br />
    " . $_GET['url'] . "<br />
    </body>
    ";
    die();
    }
    

     

    It just seems to refresh the current page... Please tell me what's wrong.

  11. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' `Crystal`=`Crystal`+, `Dueterium`=`Dueterium`+ WHERE `uname` = 'd22552000'' at line 1
    

     

    $sql = "SELECT * FROM `accounts`";
    $result = mysql_query($sql);
    
    while($row = mysql_fetch_array($result, MYSQL_ASSOC))
    {
    foreach($row as $user) {
    
    	$sqla = "SELECT * FROM `galaxy` WHERE `Owner` = '" . $user . "'";
    	$resulta = mysql_query($sqla);
    
    	while($rowa = mysql_fetch_array($resulta, MYSQL_ASSOC))
    	{
    		$sqlb = "UPDATE `test`.`accounts` SET `Metal`=`Metal`+" . $row2['MetalIncome'] . ", `Crystal`=`Crystal`+" . $row2['CrystalIncome'] . ", `Dueterium`=`Dueterium`+" . $row2['DuerteriumIncome'] . " WHERE `uname` = '" . $user . "';";
    		echo $row2['MetalIncome'];
    		echo $row2['CrystalIncome'];
    		echo $row2['DueteriumIncome'];
    		mysql_query($sqlb) or die (mysql_error());
    	}
    }
    }
    

     

    What is wrong?

  12. $sql = "UPDATE `" . $v . "` SET `" . $row['Action Name'] . "` = `" . $row['Action Name'] . "`+1 WHERE ..."TABLE.JOBS...COLUMN.ACTION TIME"... <= 1";
        mysql_query($sql) or die (mysql_error());
        echo $v . " Updated!";
    

     

    where I put: "..."TABLE.JOBS...COLUMN.ACTION TIME"... " is a fake represention of what I watn to do.

     

    This mysql code puts me in the "BUIDLINDS" table... but I want to use "ACTION TIME" from teh JOBS table in my "Where. bla bla bla  = bla" section.  HOW I DO THIS?

  13. you will need the login page on the main page to query the phpbb database for user/pass

    and you will need to learn how phpbb sets cookies (name, domain, value) and set the same

    cookie after sucessful login on the main page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.