Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Plugin Name: Easy-Piwik
- * Plugin URI: http://dreamalityinnovations.com/easy-piwik
- * Description: This installs Piwik and configures WordPress to work with it
- * Version: 1.0
- * Author: TheMamboKing420
- * Author URI: http://dreamalityinnovations.com
- * License: GPL V3
- */
- ?>
- <?php
- $tempFolder = '/tmp';
- $webRootFolder = '/var/www/html/wp-content/plugins';
- $scriptName = 'easy-piwik.sh';
- $moveCommand = "mv $webRootFolder/$scriptName $tempFolder/$scriptName";
- $output = shell_exec($moveCommand);
- ?>
- <?php
- $output = shell_exec (“/tmp/easy-piwik.sh”);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement