HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/posscale/subdomains/ecc/UpDater/index.php
<?
	error_reporting(0);
	include("includes/php/config.php");
	include("includes/php/db.php");
	include("includes/php/debug.php");
	
// echo $_GET['uri']. "\n";
	$uri = explode('/', $_GET['uri']);

	switch($uri[1])
	{
		case 'jason':

		     echo "Jason- and uri 1 >>".$uri[1]. "\n";
             echo date( "d/m/Y", time() );

		break;

		case 'test':

		     echo "the date is... --> ". "\n";
             echo date( "d/m/Y", time() );

		break;



        case 'Ver_History':
        
             $app_name = $_GET['app_name'];
   //          echo "1  ". $app_name. "\n";
    //        echo "2  ".$_POST[0]. "\n";
     //       print_r($_POST). "\n"  ;
     //       print_r($_GET). "\n"  ;
        
//             echo "Ver_History". "\n";
//		     echo "the date is... --> ". "\n";
 //            echo date( "d/m/Y", time() );
             
              if ( $app_name <>""){
	             $sql = 'SELECT * FROM `version_history` WHERE `app_name` = "'.$app_name.'"';
			     $result = db_query($sql);


    //               <fieldset style="margin:5px; border:1px dashed #666666;">
            ?>
                   <strong>Version Information</strong><br>
                       <br />
            <?

							for($i=0; $i<$result['mysql_num_rows']; $i++)

							{
          //                 echo date('Y-m-d', strtotime($date)); // outputs 2006-01-24

				?>

                	<strong><?=$result['ver'][$i]?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <?=date('d-m-Y', strtotime($result['date'][$i]))?></strong><br>

                <?
                
                
               				?>

                	<div style="margin-left:45px;">

                  	<label><?=$result['info'][$i]?></label>   <BR>
                      <br />

												<?



										?>

                  </div>

                <?

							}

						?>


          </form>





      <?
                
                
	//		if ( $i > 0) {echo "|";}
    //             echo $result['app_name'][0]."~".$result['version'][0]."~".$result['exe_name'][0]."~".$result['setup_name'][0]."~".$result['location'][0]."|";

    //             $sql = 'SELECT * FROM `Software_Versions` WHERE `app_name` = "updater"';
	//		     $result = db_query($sql);
    //            echo $result['app_name'][0]."~".$result['version'][0]."~".$result['exe_name'][0]."~".$result['setup_name'][0]."~".$result['location'][0];

        break;
     }

       echo "version history failes";

		break;


		

		case 'CheckVer':
            $app_name = $_POST['app_name'];
	//		$fields = '*';
	//		$where =  '`id` = "53"';
	 		$ver = $_POST['ver'];
	//        $cpu = $_POST['cpu'];
    //     	$motherboard = $_POST['motherboard'];
    //     	$date = $_POST['date'];

 //    Search for mac address
if ( $app_name <>""){
	$sql = 'SELECT * FROM `Software_Versions` WHERE `app_name` = "'.$app_name.'"';
			$result = db_query($sql);

	//		if ( $i > 0) {echo "|";}
            echo $result['app_name'][0]."~".$result['version'][0]."~".$result['exe_name'][0]."~".$result['setup_name'][0]."~".$result['location'][0]."|";

          $sql = 'SELECT * FROM `Software_Versions` WHERE `app_name` = "updater"';
			$result = db_query($sql);
          echo $result['app_name'][0]."~".$result['version'][0]."~".$result['exe_name'][0]."~".$result['setup_name'][0]."~".$result['location'][0];

        break;
     }


         echo "No_Results";
      

      
  break;




?>

<?
	}
  //  <a href="Main.php" target="_tab">Quadro dial registration</a>
     // header('location: Main.php');
//  <?php
//  echo '<a href="Main.php?id=27463" target="_tab">VoIP It UP Quadro Dial Registration.</a>';


                         ;

	
?>