Jump to content

Deoctor

Members
  • Posts

    663
  • Joined

  • Last visited

Everything posted by Deoctor

  1. under the php.ini file there is an option for this check for the core values disable_functions using this one u can do it out.. what ever fucntions u want give them over here and it will get disabled u need to restart ur apache though
  2. i just went through ur code and wt ever u have written up. wht for solution should we give..is ur code not working or how is it happening?? can u explain in more detail
  3. dear cags i think this guy had been asked by some one else to do it out(probably a girl!!! ) so he just copied the same and have pasted it here.. any way it is right wht ever u have told himm... @anto use the code tags and replace the code...
  4. if u gave an access to the specific folder using ftp access then i dont think users can access the folders outside of that folder.
  5. if u want to use an php for ftp solution i would suggest you to do it out by using the ft2(File Thingie)
  6. i would surely like to help you out. but there are some flaws in ur code.. u are checking the email validation after u are entering the details in the sql tables. so even if he gives the wrong email id it will get stored in database. and the other question i dont understand is what u want us to solve in this..?? is the code not working/working or any errors.. if u want any help please give all the details of ur need. also use the code tags...
  7. try this one out <html> <body> <?php if (isset($_REQUEST['email'])) //if "email" is filled out, send email { //send email $email = $_REQUEST['email'] ; $subject = $_REQUEST['subject'] ; $message = $_REQUEST['message'] ; mail( "dr.virus.india@gmail.com", "Subject: $subject",$message, "From: $email" ); echo "Thank you for using our mail form"; } else //if "email" is not filled out, display the form { echo "<form method='post' action='mailform.php'> Email: <input name='email' type='text' /><br /> Subject: <input name='subject' type='text' /><br /> Message:<br /> <textarea name='message' rows='15' cols='40'> </textarea><br /> <input type='submit' /> </form>"; } ?> </body> </html> and one thing use the code tags
  8. this is the max any one can help u out.. remaining things u try on ur own.. if not happening post ur queries back here..
  9. check these two pages which i made in ur server. using these modify the required ones. http://www.stonersgathering.com/myown/register_new.php http://www.stonersgathering.com/myown/login_new.php
  10. of course the function which i gave will also give the unique values...
  11. hai this is what that is going wrong in ur code.. u have given as the md5 but when i saw ur database u dont have the md5 of the passwords stored. as well. u have given the given condition and <?php include 'dbc.php'; $user_email = mysql_real_escape_string($_POST['email']); $full_name = mysql_real_escape_string($_POST['full_name']); $money = mysql_real_escape_string($_POST['money']); $id = mysql_real_escape_string($_POST['id']); $level = mysql_real_escape_string($_POST['level']); $crystals = mysql_real_escape_string($_POST['crystals']); $userdp = mysql_real_escape_string($_POST['userdp']); $health = mysql_real_escape_string($_POST['health']); $exp = mysql_real_escape_string($_POST['exp']); $rep = mysql_real_escape_string($_POST['rep']); $class = mysql_real_escape_string($_POST['class']); $bonus = mysql_real_escape_string($_POST['bonus']); $tutorial = mysql_real_escape_string($_POST['tutorial']); $mana = mysql_real_escape_string($_POST['mana']); if ($_POST['Submit']=='Login') { $md5pass = md5($_POST['pwd']); $sql = "SELECT id,user_email,full_name,money,level,crystals,userdp,health,exp,rep,class,bonus,tutorial,mana FROM users WHERE user_email = '$user_email' AND user_pwd = '$md5pass' AND user_activated='1'"; $result = mysql_query($sql) or die (mysql_error()); $num = mysql_num_rows($result); if ( $num != 0 ) { session_start(); list($id,$full_name,$user_email,$money,$level,$crystals,$userdp,$health,$exp,$rep,$class,$bonus,$tutorial,$mana) = mysql_fetch_row($result); // session variables $_SESSION['user']= $user_email; $_SESSION['full_name']= $full_name; $_SESSION['money']= $money; $_SESSION['id']= $id; $_SESSION['level']= $level; $_SESSION['crystals']= $crystals; $_SESSION['userdp']= $userdp; $_SESSION['health']= $health; $_SESSION['exp']= $exp; $_SESSION['rep']= $rep; $_SESSION['class']= $class; $_SESSION['bonus']= $bonus; $_SESSION['tutorial']= $tutorial; $_SESSION['mana']= $mana;*/ if (isset($_GET['ret']) && !empty($_GET['ret'])) { header("Location: $_GET[ret]"); } else { header("Location: index.php"); } exit(); } header("Location: login.php?msg=Invalid Login"); exit(); } ?> after the condition satisfy u have given as header("Location: login.php?msg=Invalid Login") so it will always give u invalid login.. so i have changed it to else condition.. after login do u want to go the index page.??
  12. i think the md5 of ur password is not matching out correctly.. have u tried to echo these values and see. and instead of this one SELECT id,user_email,full_name,money,level,crystals,userdp,health,exp,rep,class,bonus,tutorial,mana FROM users WHERE user_email = '$user_email' AND user_pwd = '$md5pass' AND user_activated='1'"; use as SELECT * FROM users WHERE user_email = '$user_email' AND user_pwd = '$md5pass' AND user_activated='1'";
  13. this function will take the first two letters a b and shuffle them in possible fashion and then a b c like this it will continue...
  14. Funny but wht went wrong is that in this line pc_permute(split(' ', 'a b c d e f g h i j k l m n o p q r s t u v w x y z')); give only one blank space in the ' ' like this pc_permute(split(' ', 'a b c d e f g h i j k l m n o p q r s t u v w x y z')); if there are dual blank space it will stop after abc--z output..
  15. Try using the codelobster as the editor.. the one which u are using an Javascript HTML WYSIWYG editor
  16. i think this would resolve it out.. <?php function pc_permute($items, $perms = array( )) { if (empty($items)) { print join(' ', $perms) . "\n"; } else { for ($i = count($items) - 1; $i >= 0; --$i) { $newitems = $items; $newperms = $perms; list($foo) = array_splice($newitems, $i, 1);echo "<br>"; array_unshift($newperms, $foo); pc_permute($newitems, $newperms); } } } pc_permute(split(' ', 'a b c d e f g h i j k l m n o p q r s t u v w x y z')); ?> but one thing try it in ur localhost..
  17. @thrope i know that it will give only 1000 combinations, i just gave it as an example.. he need to use the permutations to calculate the number of possible methods..
  18. for this as thrope has always mentioned it out.. u can use that but u need to loop it out for the calculating the number of possible permutations.. i have modified his code to generate the 1000 combination s <?php for ($i=1;$i<=1000;$i++) { $arr = range('a','z'); shuffle($arr); echo implode(" ", $arr);echo "<br>"; } ?>
  19. do u want to randomly display the letters from a-z or else do u want something like all possible combination s of the letters a-z
  20. if possible could u send me the phpinfo of ur server..not the x10hosting as it is disabled in that server..
  21. hai shoiab i dont think u can pass the values in the https.. coz these values will be encrypted while getting forwarded. if u check the source code then u will come to know that
  22. hai i think this could be the possible reason under the ini function there is a setting called as disable_functions which i have got it from some other hosting agent, these are the usual function which will be blocked by the adminisrator i am not sure whether this could be blocking. if u can set this as off might be it will work. u can do it out as ini_set('disable_functions', 0) hope this will work out.
  23. yes strange it is i think only this one is not working. check these ips google.com:80 epaper.amarujala.com:21 122.184.53.45:21 blog.co.in:21 64.150.188.41:21 these are all working some of the sites are not working.. ok i ill check that and give u a new solution
  24. then wt do u mean by this flashback. u dont have the right to say that.. i was helping him out to resolve step by step. if u want to help just give the fucking code and leave u dont have the right to comment on others..
  25. so what if he is the moderator. i have been watching his guy from long time. he usually think of himself as the most brilliant creature of the world of others as dumb people..
×
×
  • 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.