Current time: 05-24-2012, 07:28 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sever status problem
06-13-2010, 05:49 PM
Post: #1
Sever status problem
When i click to go to the server status page in the admin area I get a blank page that says this


Parse error: syntax error, unexpected T_VARIABLE in /home/marco/public_html/order/admin/pages/status.php on line 48
Find all posts by this user
Quote this message in a reply
06-13-2010, 06:14 PM
Post: #2
RE: Sever status problem
Did you edit the status.php file at all? What version are you using?

- KuJoe
▒ LvL8
▒ The Free Web Hosting Guide
▒ FreeWebHostingTalk


PM me for theme conversions @ $15!
Visit this user's website Find all posts by this user
Quote this message in a reply
06-13-2010, 07:45 PM
Post: #3
RE: Sever status problem
1.2.1 And no i didnt edit it. its weird and idk what to do about it
Find all posts by this user
Quote this message in a reply
06-13-2010, 08:07 PM
Post: #4
RE: Sever status problem
Can you upload your status.php file? I've looked at a 1.2.1 copy but I can't see anything wrong with the syntax.

- KuJoe
▒ LvL8
▒ The Free Web Hosting Guide
▒ FreeWebHostingTalk


PM me for theme conversions @ $15!
Visit this user's website Find all posts by this user
Quote this message in a reply
06-13-2010, 09:00 PM (This post was last modified: 06-13-2010 10:02 PM by Calicrook.)
Post: #5
RE: Sever status problem
PHP Code:
<?php
//////////////////////////////
// The Hosting Tool
// Admin Area - Home
// By Jonny H
// Released under the GNU-GPL
//////////////////////////////
/*
 * Server Status for AdminCP
 * By Jimmie Lin
 * THT Community
 * Listening to: The Proclaimers - What makes you cry :p
 */

//Check if called by script
if(THT != 1){die();}

class 
page {
                 
    public 
$navtitle;
    public 
$navlist = array();
    
    public function 
__construct() {
        
$this->navtitle "Server Status Sub Menu";
        
$this->navlist[] = array("Server Status""application_osx_terminal.png""status");
        
$this->navlist[] = array("PHP Info""page_white_php.png""phpinfo");
    }

    public function 
description() {
        return 
"<strong>Server Status</strong><br />
        Welcome to the server status system. Here you can see your server information, php information and more."
;    
    }
    
    public function 
mysqlversion() { #Thanks to tharis20 at p@p to solve this problem
       
$output shell_exec('mysql -V');
       
preg_match('@[0-9]+\.[0-9]+\.[0-9]+@'$output$version);
       return 
$version[0];
    } 
    
    public function 
server_status(){
        
$diskfreespace disk_free_space('/') / 1073741824;
        
$disktotalspace disk_total_space('/') / 1073741824;
        global 
$style;
        
$array['OS'] = PHP_OS;
        
$array['SOFTWARE'] = getenv('SERVER_SOFTWARE');
        
$array['PHP_VERSION'] = phpversion();
        
$array['MYSQL_VERSION'] = $this->mysqlversion
        $array
['DISK_FREE_SPACE'] = substr($diskfreespace,0,4);
        
$array['DISK_TOTAL_SPACE'] = substr($disktotalspace,0,4);();
        echo 
$style->replaceVar('tpl/aserverstatus.tpl',$array);
    }
    
    public function 
content() { # Displays the page 
        
global $main;
        global 
$page;
        global 
$style;
        
        switch(
$main->getvar['sub']) {
           default: 
$this->server_status(); break;
           
           case 
"phpinfo":
                   echo 
$style->replaceVar('tpl/phpinfo.tpl',$array);
           break;
        }
    }
}
?>

EDIT*** I updated to the nightly and everything is fixed
I love that build btw
Mod please close!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)