From: Chris S. <san...@us...> - 2005-10-27 14:39:33
|
Update of /cvsroot/stack/stack-1-0/scripts/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10711/scripts/install Modified Files: stackBackup.php Log Message: Index: stackBackup.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/scripts/install/stackBackup.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** stackBackup.php 27 Oct 2005 14:35:13 -0000 1.1 --- stackBackup.php 27 Oct 2005 14:39:22 -0000 1.2 *************** *** 9,12 **** --- 9,13 ---- * Include the stack settings. */ + session_start(); require('../../stackConfig.php'); require('../../stackLib.php'); *************** *** 16,19 **** --- 17,30 ---- $file_names = NULL; + $user['id'] = 0; + if (array_key_exists('user',$_SESSION)) { + $user = $_SESSION['user']; + } + + if (-1 != $user['id'] and !$user['loggedin']) { + die("Only the admin user may backup an entire site."); + } + + ?> <html> |