From: Joe Z. <jz...@us...> - 2003-04-24 06:16:49
|
Update of /cvsroot/bobs/bobs/inc In directory sc8-pr-cvs1:/tmp/cvs-serv31230/bobs/inc Modified Files: Makefile.in class_config.php config.php.in header.pinc Log Message: Created a page to check bobs configuration: systemcheck.php Index: Makefile.in =================================================================== RCS file: /cvsroot/bobs/bobs/inc/Makefile.in,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Makefile.in 20 Apr 2003 08:02:55 -0000 1.3 +++ Makefile.in 24 Apr 2003 06:15:58 -0000 1.4 @@ -81,6 +81,8 @@ myPASS = @myPASS@ myWEBDIR = @myWEBDIR@ myrealBOBSDATA = @myrealBOBSDATA@ +myrealCRONDIR = @myrealCRONDIR@ +myrealCRONTABDIR = @myrealCRONTABDIR@ myrealWEBDIR = @myrealWEBDIR@ SUBDIRS = excludes servers templates Index: class_config.php =================================================================== RCS file: /cvsroot/bobs/bobs/inc/class_config.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- class_config.php 1 Sep 2002 02:24:44 -0000 1.12 +++ class_config.php 24 Apr 2003 06:15:59 -0000 1.13 @@ -38,5 +38,59 @@ return $this->sys_conf['siteroot']; } +// --------------------------------------------------------- +// get_datadir - Return BOBS data directory name +// Used by: servercheck.php +// Returns: BOBS data directory name +// --------------------------------------------------------- +function get_datadir(){ + return $this->sys_conf['datadir']; +} + +// --------------------------------------------------------- +// get_backupdir - Return BOBS backup directory name +// Used by: servercheck.php +// Returns: BOBS backup directory name +// --------------------------------------------------------- +function get_backupdir(){ + return $this->sys_conf['backupdir']; +} + +// --------------------------------------------------------- +// get_incomingdir - Return BOBS incoming directory name +// Used by: servercheck.php +// Returns: BOBS incoming directory name +// --------------------------------------------------------- +function get_incomingdir(){ + return $this->sys_conf['incomingdir']; +} + +// --------------------------------------------------------- +// get_incrementdir - Return BOBS incremental backup directory name +// Used by: servercheck.php +// Returns: BOBS incremental backup directory name +// --------------------------------------------------------- +function get_incrementdir(){ + return $this->sys_conf['incrementdir']; +} + +// --------------------------------------------------------- +// get_crondir - Return the cron daily directory name +// Used by: servercheck.php +// Returns: Cron daily directory name +// --------------------------------------------------------- +function get_crondir(){ + return $this->sys_conf['crondir']; +} + +// --------------------------------------------------------- +// get_crontabdir - Return the crontab directory name +// Used by: servercheck.php +// Returns: crontab directory name +// --------------------------------------------------------- +function get_crontabdir(){ + return $this->sys_conf['crontabdir']; +} + } // Class end bracket ?> Index: config.php.in =================================================================== RCS file: /cvsroot/bobs/bobs/inc/config.php.in,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- config.php.in 5 Feb 2003 02:05:24 -0000 1.5 +++ config.php.in 24 Apr 2003 06:15:59 -0000 1.6 @@ -6,6 +6,9 @@ // define locations of various files +// Base data directory +$sys_conf["datadir"] = '@myrealBOBSDATA@'; + // Base dir to do full current backups. This is where // the current backup will be stored. $sys_conf["backupdir"] = '@myrealBOBSDATA@/current'; @@ -20,6 +23,10 @@ // root of the bobs site. $sys_conf["siteroot"] = '@myrealWEBDIR@'; + +// Cron daily and crontab locations +$sys_conf["crondir"] = '@myrealCRONDIR@'; +$sys_conf["crontabdir"] = '@myrealCRONTABDIR@'; // Server definition template Index: header.pinc =================================================================== RCS file: /cvsroot/bobs/bobs/inc/header.pinc,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- header.pinc 24 Mar 2003 05:37:39 -0000 1.4 +++ header.pinc 24 Apr 2003 06:15:59 -0000 1.5 @@ -10,19 +10,19 @@ <tr> <td align="center" bgcolor="#707070" width="20%"> <a href=admin.php?menu_logout=1> - <img src="images/menu/menu_logout.png" border="0"></a></td> + <img src="images/menu/menu_logout.png" border="0"></a></td> <td align="center" bgcolor="#707070" width="20%"> <a href=admin.php?menu_servers=1> - <img src="images/menu/menu_servers.png" border="0"></a></td> + <img src="images/menu/menu_servers.png" border="0"></a></td> <td align="center" bgcolor="#707070" width="20%"> <a href=admin.php?menu_access=1> - <img src="images/menu/menu_access.png" border="0"></a></td> + <img src="images/menu/menu_access.png" border="0"></a></td> <td align="center" bgcolor="#707070" width="20%"> <a href=admin.php?menu_bobs=1> - <img src="images/menu/menu_restore.png" border="0"></a></td> + <img src="images/menu/menu_restore.png" border="0"></a></td> <td align="center" bgcolor="#707070" width="20%"> <a href=admin.php?menu_help=1> - <img src="images/menu/menu_help.png" border="0"></a></td> + <img src="images/menu/menu_help.png" border="0"></a></td> </tr> </table> |