���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/st2/vendor/curl/curl/tests/server/php-curl-test/ |
<?php // The commands $commands = array( 'cd ../../.. && git pull', ); // Run the commands for output $output = ''; foreach($commands AS $command){ // Run it $tmp = shell_exec($command); // Output $output .= "<span style=\"color: #6BE234;\">\$</span> <span style=\"color: #729FCF;\">{$command}\n</span>"; $output .= htmlentities(trim($tmp)) . "\n"; } // Make it pretty for manual user access (and why not?) ?> <!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <title>GIT DEPLOYMENT SCRIPT</title> </head> <body style="background-color: #000000; color: #FFFFFF; font-weight: bold; padding: 0 10px;"> <pre> . ____ . ____________________________ |/ \| | | [| <span style="color: #FF0000;">♥ ♥</span> |] | Git Deployment Script v0.1 | |___==___| / © oodavid 2012 | |____________________________| <?php echo $output; ?> </pre> </body> </html>