Jump to content

seifhate

Members
  • Posts

    24
  • Joined

  • Last visited

seifhate's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Thank you very much i backed up all my files sorry about any problems i caused :$
  2. Hello Please my acccount has been suspended again so please give me a backup of the root directory Thanks very much i really loved heliohost but i do aproblem with server load
  3. Hello, My account has been suspended and i don't know the reason Please reactivate my account asap Please tell me reason of suspension Thanks in advance
  4. I ran it and it worked Thanks
  5. Yeah also me booleans always gives me an error I don't wan to md5 the pass because it will be used in the other script to retrieve pass and create the frp account so if it's in md5 it will not work :S That's why No the first part "seifhate:pass" is for logging in automatically and doung the job Thanks @xaav: no i couldn't do it as a boolean i did as a varchar with default value false @xaav: no i couldn't do it as a boolean i did as a varchar with default value false
  6. Every thing is done and working well until entering data into the db what do i need to do next to create the subdomains (the cron acript)? Thanks in advance
  7. Thanks for this useful information so my new code will look like this <?php include 'mysql-connect.php'; $username = mysql_real_escape_string( $_POST['username'] ); $password = mysql_real_escape_string( $_POST['password'] ); $firstname = mysql_real_escape_string( $_POST['firstname'] ); $lastname = mysql_real_escape_string( $_POST['lastname'] ); $email = mysql_real_escape_string( $_POST['email'] ); $ip = $_SERVER['REMOTE_ADDR']; $strCheckUserSQL = "SELECT * FROM subs WHERE username='$username'"; $CheckUserQuery = mysql_query($strCheckUserSQL); $strCheckEmailSQL = "SELECT * FROM subs WHERE email='$email'"; $CheckEmailQuery = mysql_query($strCheckEmailSQL); // You really should escape these values, but I'm not going to do that here mysql_query("INSERT INTO subs (username, password, firstname, lastname, ip, email) VALUES ('$username', '$password', '$firstname', '$lastname', '$ip', '$email')"); ?> i don't need to md5 the password. is this script secure?? Can you help me with the other script also please thanks in advance
  8. So the first acript will be in the public_html folder normallyand the user will register to add the user to the db And the cron script is in home that will be excuted manually to get the uncreated users and create them, am i right?? And what do you mean with escaping these values in script 1 Thank you very vey much
  9. Hello Here is a part of mu final code enter to database,crete subdomain and ftp if anyone need it he can copy it or post it on other forums. Thanks for xaav for helping me with it <?php include 'mysql-connect.php'; $username = $_POST['username']; $password = $_POST['password']; $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $email = $_POST['email']; $ip = $_SERVER['REMOTE_ADDR']; $strCheckUserSQL = "SELECT * FROM subs WHERE username='$username'"; $CheckUserQuery = mysql_query($strCheckUserSQL); $strCheckEmailSQL = "SELECT * FROM subs WHERE email='$email'"; $CheckEmailQuery = mysql_query($strCheckEmailSQL); $path="http://seifhate:pass@seifhatem.co.cc:2082/frontend/x3/subdomain/doadddomain.html?rootdomain=seifhatem.co.cc&domain=$username"; $path2="http://seifhate:pass@seifhatem.co.cc:2082/frontend/x3/ftp/doaddftp.html?login=$username&password=$password&quota=13"; mysql_query("INSERT INTO subs (username, password, firstname, lastname, ip, email) VALUES ('$username', '$password', '$firstname', '$lastname', '$ip', '$email')"); $f = fopen($path, "r"); stream_get_contents($f); $f2 = fopen($path2, "r"); stream_get_contents($f2); but there is a problwm am facing that johnny is extremely slow and always returns an error and sometimes just do one or two of the three (subdomain,ftp and mysql) so can anyone help me with a sample cron script that retrieves data from mysql and create the subdomain abd ftp accounts because i am new to cron scripts. Thanks in advance
  10. Don't worry This will be for students to upload their deaigned webaites on so no one will try to hack it
  11. It finally worked Thank you very very very much :D and Happy New Year
  12. Sorry i can't understand this part Thanks The code didn't work
  13. When i do this code It creates the subdomain but how to make it without showing it to the userbecause he can toggle in cpanel Thanks in advance Brw i used "$f" not "$path"
  14. I am on johnny server
  15. Hello Please i am doing a php script that creates a subdomain but it doesn't work Here is the code <? $username = $_POST['subdomain']; $path="http://seifhate:pass@seifhatem.co.cc:2082/frontend/x3/subdomain/doadddomain.html?rootdomain=seifhatem.co.cc&domain=$username"; $f = fopen($path, "r"); echo $path; fclose($f); ?> <html> <form method="POST" action=""> Subdomain: <input type="text" name="subdomain"/> <input type="submit" name="submit" value="Create"/> </html> please help Thanks in advance
×
×
  • Create New...