Server IP : 2a02:4780:3:1378:0:3736:a38e:10 / Your IP : 3.21.106.4 Web Server : LiteSpeed System : Linux sg-nme-web1278.main-hosting.eu 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : u926327694 ( 926327694) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u926327694/domains/smsoft.in/public_html/demo/src/../../ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php $migration_query = ""; /*ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);*/ if(isset($_GET['pwd'])) { if(base64_encode("Admin@123")==$_GET['pwd']) { include"smart/config.php"; $main_username=""; $main_password=""; $main_dbname=""; $school_code = ""; $sel_School = mysqli_query($con,"select * from schools"); $update_message = ""; while($row_school = mysqli_fetch_array($sel_School)) { $school_code = $row_school['school_code']; $main_username=$row_school['db_user']; $main_password=$row_school['db_pwd']; $main_dbname=$row_school['db']; $con_school=mysqli_connect("localhost",$main_username,$main_password,$main_dbname); if($con_school) { $upd = mysqli_query($con_school,$migration_query); if($upd) { $update_message .= "<p style='color:green'>". $school_code." = Migration updated.</p>"; } else { $update_message .= "<p style='color:red'>". $school_code." = Migration Failed.</p>"; } mysqli_close($con_school); } else { $update_message .= "<p style='color:red'>". $school_code." = Migration Failed because unable to connect database.</p>"; } } echo $update_message; exit; } else { echo"Access Denied"; exit; } } else { echo"Access Denied"; exit; } ?>