home *** CD-ROM | disk | FTP | other *** search
- <?php
-
- function site($action) {
-
- if ($action == "edit") {
- print("Opening Site Directory<br>");
- exec("START C:\apache\htdocs &") or die ("Could not Open Site Directory<br><a href=\"index.html\">Back to Index</a>");
- print("Site Directory Opened.<br><a href=\"index.html\">Back to Index</a>");
- }
- elseif ($action == "open") {
- print("Opening Site in new window<br>");
- exec("start http://localhost &") or die ("Could not open site<br><a href=\"index.html\">Back to Index</a>");
- print("Site opened<br><a href=\"index.html\">Back to Index</a>");
- }
- elseif ($action == "phpmyadmin") {
- print("Opening PHPMyAdmin<br>");
- exec("start http://localhost/phpmyadmin &") or die ("Could not open site<br><a href=\"index.html\">Back to Index</a>");
- print("PHPMyAdmin opened<br><a href=\"index.html\">Back to Index</a>");
- }
- elseif ($action == "backup") {
- print("Backing Up<br>");
- exec("backup &") or die ("Could not open site<br><a href=\"index.html\">Back to Index</a>");
- print("Backup Complete<br><a href=\"index.html\">Back to Index</a>");
- } else {
- print("No action to perform");
- }
-
- }
-
- site($action);
- ?>