예제 #1
0
파일: config.php 프로젝트: saviobosco/lobby
<?php

class logSysLobbyDB
{
    public function prepare($query)
    {
        $obj = \Lobby\DB::$dbh->prepare($query);
        return $obj;
    }
}
require_once __DIR__ . "/class.logsys.php";
$salt = getOption("admin_secure_salt");
$cookie = getOption("admin_secure_cookie");
\Fr\LS::$config = array("db" => array("table" => \Lobby\DB::$prefix . "users"), "features" => array("auto_init" => false, "start_session" => false, "email_login" => false), "keys" => array("cookie" => $cookie, "salt" => $salt), "pages" => array("no_login" => array(), "login_page" => "/admin/login", "home_page" => "/admin/"));
\Fr\LS::construct();
예제 #2
0
<?php

$docRoot = realpath(__DIR__);
define("docRoot", $docRoot);
/* Load the configuration */
require_once "{$docRoot}/config.php";
require_once "{$docRoot}/inc/class.open.php";
require_once "{$docRoot}/inc/class.logsys.php";
$db = unserialize(DATABASE);
\Fr\LS::$config = array("db" => array("host" => $db['host'], "port" => $db['port'], "name" => $db['name'], "username" => $db['user'], "password" => $db['pass'], "table" => "users"), "keys" => array("cookie" => "cantMakePublic", "salt" => "cantMakePublic"), "pages" => array("no_login" => array("/", "/register", "/me/ResetPassword"), "login_page" => "/login", "home_page" => "/home"), "features" => array("email_login" => false));
\Fr\LS::construct();
/* Basic Variables */
$loggedIn = \Fr\LS::$loggedIn;
/* Boolean on status of current user (logged in or not) */
$who = \Fr\LS::$user;
/* The current user */
/* Global Variables */
$_P = count($_POST) > 0 ? true : false;
/* Boolean Variable whether POST data is sent with the request */
define("loggedIn", $loggedIn);
define("curUser", $who);
$OP = new Open();
if (!function_exists("get")) {
    function get($key, $uid = "", $json = true)
    {
        global $OP;
        return $OP->get($key, $uid, $json);
    }
}
/* Do these if user is logged in */
if (loggedIn && !isset($uimg)) {
예제 #3
0
<?php

include "class.logsys.php";
/**
 * This configuration is for Subin's Blog Demos page
 * running on RedHat's OpenShift server
 */
\Fr\LS::$config = array("info" => array("company" => "Catch-design", "email" => "*****@*****.**"), "db" => array("host" => "localhost", "port" => 3306, "username" => "root", "password" => "basjas13", "name" => "CatchDesign", "table" => "users"), "keys" => array("cookie" => "myCookieKey", "salt" => "MySaltKey"), "features" => array("auto_init" => true), "pages" => array("no_login" => array("/admin/loginSystem/", "/admin/loginSystem/reset.php", "/admin/loginSystem/register.php"), "login_page" => "/admin/loginSystem/login.php", "home_page" => "/admin/loginSystem/home.php"));
예제 #4
0
파일: config.php 프로젝트: Chronaium/htdocs
<?php

include "class.logsys.php";
/**
 * This configuration is for Subin's Blog Demos page
 * running on RedHat's OpenShift server
 */
\Fr\LS::$config = array("info" => array("company" => "Subin's Blog Demos", "email" => "*****@*****.**"), "db" => array("host" => "localhost", "port" => 3306, "username" => "username", "password" => "password", "name" => "database_name", "table" => "logSysUsers"), "keys" => array("cookie" => "myCookieKey", "salt" => "MySaltKey"), "features" => array("auto_init" => true), "pages" => array("no_login" => array("/php/loginSystem/", "/php/loginSystem/reset.php", "/php/loginSystem/register.php"), "login_page" => "/php/loginSystem/login.php", "home_page" => "/php/loginSystem/home.php"));