1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 03:24:20 +02:00

Some code cleanup. auto-redirection to previous admin page if log back in within 5 mins.

This commit is contained in:
CaMer0n
2009-11-22 14:10:09 +00:00
parent eb8cc4bfb5
commit 0048078c6e
18 changed files with 406 additions and 283 deletions

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org/).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/cron.php,v $
| $Revision: 1.22 $
| $Date: 2009-11-21 22:26:15 $
| $Author: e107steved $
| $Revision: 1.23 $
| $Date: 2009-11-22 14:10:05 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
@@ -268,12 +268,11 @@ function cronName($classname,$method)
function setCronPwd()
{
global $pref;
require_once (e_HANDLER.'user_handler.php');
$userMethods = new UserHandler;
$newpwd = $userMethods->generateRandomString('*^*#.**^*');
$newpwd = sha1($newpwd.time());
$pref['e_cron_pwd'] = $newpwd;
$userMethods = e107::getSession();
$newpwd = $userMethods->generateRandomString('*^*#.**^*');
$newpwd = sha1($newpwd.time());
$pref['e_cron_pwd'] = $newpwd;
return save_prefs();