本文整理汇总了PHP中AuthUser::isConnected方法的典型用法代码示例。如果您正苦于以下问题:PHP AuthUser::isConnected方法的具体用法?PHP AuthUser::isConnected怎么用?PHP AuthUser::isConnected使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AuthUser
的用法示例。
在下文中一共展示了AuthUser::isConnected方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AuthUser
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************
******************************************************************************/
umask(022);
session_start();
define('BASE', '../../../');
define('DOORGETS', 'http://www.doorgets.com/');
// Ne pas supprimer
require_once BASE . 'config/config.php';
define('BASE_URL', URL);
// Authentification User
$Auth = new AuthUser();
$User = $Auth->isConnected();
if (empty($User)) {
header('HTTP/1.0 404 Not Found');
exit;
}
if (array_key_exists('backurl', $_GET)) {
$backurl = filter_var($_GET['backurl'], FILTER_SANITIZE_URL);
$_SESSION['backurl'] = $backurl;
}
$crud = new CRUD();
$urlTraduction = '';
$website = $crud->dbQS(1, '_website');
if (!empty($website)) {
$langueGroupe = @unserialize($website['langue_groupe']);
$cLangue = count($langueGroupe);
if ($cLangue) {
示例2: AuthUser
<?php
umask(022);
session_start();
define('BASE', '../');
define('DOORGETS', 'http://www.doorgets.com/');
// Ne pas supprimer
require_once BASE . 'config/config.php';
define('BASE_URL', URL);
$userAuth = new AuthUser();
$user = $userAuth->isConnected();
if (empty($user)) {
exit;
}
switch ($user['fileman']) {
case 'admin':
copy("admin.json", "conf.json");
break;
case 'modo':
copy("contri.json", "conf.json");
break;
case 'contrib':
copy("moder.json", "conf.json");
break;
default:
copy("none.json", "conf.json");
break;
}
?>
<!DOCTYPE html>
<html>