mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
getperms() BC fix and remove debug info from signup
This commit is contained in:
11
class2.php
11
class2.php
@@ -9,8 +9,8 @@
|
|||||||
* General purpose file
|
* General purpose file
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/class2.php,v $
|
* $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||||
* $Revision: 1.161 $
|
* $Revision: 1.162 $
|
||||||
* $Date: 2009-11-22 14:10:00 $
|
* $Date: 2009-11-22 23:36:23 $
|
||||||
* $Author: e107coders $
|
* $Author: e107coders $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -183,6 +183,9 @@ unset($inc_path);
|
|||||||
// F: Grab e107_config, get directory paths and create $e107 object
|
// F: Grab e107_config, get directory paths and create $e107 object
|
||||||
//
|
//
|
||||||
@include_once(realpath(dirname(__FILE__).'/e107_config.php'));
|
@include_once(realpath(dirname(__FILE__).'/e107_config.php'));
|
||||||
|
|
||||||
|
define("MPREFIX", $mySQLprefix);
|
||||||
|
|
||||||
if(!isset($ADMIN_DIRECTORY))
|
if(!isset($ADMIN_DIRECTORY))
|
||||||
{
|
{
|
||||||
// e107_config.php is either empty, not valid or doesn't exist so redirect to installer..
|
// e107_config.php is either empty, not valid or doesn't exist so redirect to installer..
|
||||||
@@ -305,7 +308,7 @@ if (!$ADMIN_DIRECTORY && !$DOWNLOADS_DIRECTORY)
|
|||||||
e107::getSingleton('e107_traffic'); // We start traffic counting ASAP
|
e107::getSingleton('e107_traffic'); // We start traffic counting ASAP
|
||||||
//$eTraffic->Calibrate($eTraffic);
|
//$eTraffic->Calibrate($eTraffic);
|
||||||
|
|
||||||
define("MPREFIX", $mySQLprefix);
|
|
||||||
|
|
||||||
e107_require_once(e_HANDLER.'mysql_class.php');
|
e107_require_once(e_HANDLER.'mysql_class.php');
|
||||||
|
|
||||||
@@ -1340,7 +1343,7 @@ function getperms($arg, $ap = ADMINPERMS)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($ap === '0')
|
if ($ap === '0' || $ap === '0.') // BC fix.
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
12
signup.php
12
signup.php
@@ -9,8 +9,8 @@
|
|||||||
* User signup
|
* User signup
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/signup.php,v $
|
* $Source: /cvs_backup/e107_0.8/signup.php,v $
|
||||||
* $Revision: 1.43 $
|
* $Revision: 1.44 $
|
||||||
* $Date: 2009-11-22 14:10:03 $
|
* $Date: 2009-11-22 23:36:23 $
|
||||||
* $Author: e107coders $
|
* $Author: e107coders $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -255,14 +255,10 @@ if($signup_imagecode)
|
|||||||
$sec_img = new secure_image;
|
$sec_img = new secure_image;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (USER || ($pref['user_reg'] == 0) || (vartrue($pref['auth_method'],'e107') != 'e107'))
|
if (USER || ($pref['user_reg'] == 0) || (vartrue($pref['auth_method'],'e107') != 'e107'))
|
||||||
{
|
{
|
||||||
//header('location: '.e_HTTP.'index.php');
|
header('location: '.e_HTTP.'index.php');
|
||||||
var_dump(USER);
|
|
||||||
var_dump($pref['user_reg']);
|
|
||||||
var_dump($pref['auth_method']);
|
|
||||||
echo "hello";
|
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user