Skip to content
Snippets Groups Projects
Select Git revision
  • 5329476ebf9acb393f775ed6bca062cd0df2a27f
  • pre-2.1b default protected
  • pre-2.1
  • pre-2.0
  • testTag
  • pre2.1b
6 results

backTasks.php

Blame
  • backTasks.php 1.12 KiB
    <?php
    if (isset($_GET["loadClientNavbar"])) {
    	echo loadClientNavbar($_GET["loadClientNavbar"]);
    } elseif (isset($_GET["loadLastNavItem"])) {
    	echo loadLastNavItem($_GET["loadLastNavItem"]);
    } elseif (isset($_GET["netAccess"]) && !empty($_GET["netAccess"])) {
    	$decryption_iv = '1106737252181743';
    	$ciphering = "AES-128-CTR";
    	$iv_length = openssl_cipher_iv_length($ciphering);
    	$options = 0;
        $decryption_key = $bdd->query("SELECT value FROM `vbcms-settings` WHERE name = 'encryptionKey'")->fetchColumn();
        $instructions= openssl_decrypt($_GET["netAccess"], $ciphering,  $decryption_key, $options, $decryption_iv);
        if (isJson($instructions)) {
        	$instructions = json_decode($instructions, true);
        	switch ($instructions["command"]) {
        		case 'getVersionInfo':
        			echo $bdd->query("SELECT value FROM `vbcms-settings` WHERE name = 'vbcmsVersion'")->fetchColumn();
        			break;
        		
        		default:
        			echo "unrecognized command";
        			break;
        	}
        }
        
    } else {?>
    <!DOCTYPE html>
    <html>
    <head>
    	<meta charset="utf-8">
    	<title><?=$websiteName?> | Tâches de fond</title>
    </head>
    <body>
    
    </body>
    </html>
    <?php } ?>