- /src/functions.php in line 821
[ Method: FWS_DB_MySQL_Connection::connect() ]
0816 $c = new FWS_DB_MySQL_Connection();
0817
0818 if($c->is_connected())
0819 return $c;
0820
0821 $c->connect($host,$login,stripslashes(html_entity_decode($password, ENT_QUOTES, BS_HTML_CHARSET)));
0822 $c->select_database($database);
0823 $c->set_use_transactions(BS_USE_TRANSACTIONS);
0824 $c->set_save_queries(BS_DEBUG > 1);
0825 // we don't want to escape them because we use the input-class to do so.
0826 // before query-execution would be better but it is too dangerous to change that now :/
0827 $c->set_escape_values(false);
- /src/proploader.php in line 211
[ Method: BS_Functions::connect_to_db() ]
0206 */
0207 protected function db()
0208 {
0209 $functions = FWS_Props::get()->functions();
0210
0211 return $functions->connect_to_db(BS_MYSQL_HOST, BS_MYSQL_LOGIN, BS_MYSQL_PASSWORD, BS_MYSQL_DATABASE);
0212 }
0213
0214 /**
0215 * @return FWS_Input the property
0216 */
0217 protected function input()
- /fws/proploader.php in line 49
[ Method: BS_PropLoader::db() ]
0044 {
0045 if(!method_exists($this,$name))
0046 FWS_Helper::error('The method '.$name.'() does not exist.
0047 Does the property you requested exist?');
0048
0049 return $this->$name();
0050 }
0051
0052 /**
0053 * @return FWS_Document the document
0054 */
0055 protected function doc()
- /fws/propaccessor.php in line 116
[ Method: FWS_PropLoader::load() ]
0111 * @return mixed the property
0112 */
0113 protected final function get($name)
0114 {
0115 if(!isset($this->_instances[$name]))
0116 $this->_instances[$name] = $this->_loader->load($name);
0117 return $this->_instances[$name];
0118 }
0119
0120 /**
0121 * @return FWS_Document the document-instance
0122 */
- /src/propaccessor.php in line 140
[ Method: FWS_PropAccessor::get() ]
0135 /**
0136 * @return FWS_DB_MySQL_Connection the db-property
0137 */
0138 public function db()
0139 {
0140 return $this->get('db');
0141 }
0142
0143 /**
0144 * @return FWS_Input the input-property
0145 */
0146 public function input()
- /src/dao/sessions.php in line 75
[ Method: BS_PropAccessor::db() ]
0070 *
0071 * @return array the entries
0072 */
0073 public function get_all()
0074 {
0075 $db = FWS_Props::get()->db();
0076
0077 return $db->get_rows(
0078 'SELECT s.*,u.`'.BS_EXPORT_USER_NAME.'` user_name,p.ghost_mode,p.user_group
0079 FROM '.BS_TB_SESSIONS.' s
0080 LEFT JOIN '.BS_TB_USER.' u ON s.user_id = u.`'.BS_EXPORT_USER_ID.'`
0081 LEFT JOIN '.BS_TB_PROFILES.' p ON s.user_id = p.id
- /src/session/storage/db.php in line 37
[ Method: BS_DAO_Sessions::get_all() ]
0032 final class BS_Session_Storage_DB extends FWS_Object implements FWS_Session_Storage
0033 {
0034 public function load_list()
0035 {
0036 $online = array();
0037 foreach(BS_DAO::get_sessions()->get_all() as $data)
0038 $online[] = new BS_Session_Data($data);
0039 return $online;
0040 }
0041
0042 public function get_new_user()
0043 {
- /fws/session/manager.php in line 277
[ Method: BS_Session_Storage_DB::load_list() ]
0272 /**
0273 * Loads the user-list
0274 */
0275 private function _load_user_list()
0276 {
0277 $list = $this->_storage->load_list();
0278 $this->_user_list = array();
0279 foreach($list as $user)
0280 $this->_user_list[$user->get_session_id().$user->get_user_ip()] = $user;
0281 }
0282
0283 protected function get_dump_vars()
- /fws/session/manager.php in line 96
[ Method: FWS_Session_Manager::_load_user_list() ]
0091
0092 $this->_enable_session = (boolean)$enable_session;
0093 $this->_storage = $storage;
0094
0095 if($enable_session)
0096 $this->_load_user_list();
0097 }
0098
0099 /**
0100 * Will update all changed user
0101 *
0102 * @param bool $force if enabled, it will be done even if we've done that before
- /src/session/manager.php in line 40
[ Method: FWS_Session_Manager::__construct() ]
0035 /**
0036 * Constructor
0037 */
0038 public function __construct()
0039 {
0040 parent::__construct(new BS_Session_Storage_DB());
0041 }
0042
0043 protected function check_online_timeout($user,$currentsid)
0044 {
0045 // We want to treat acp-users different from frontend-users
0046 $loc = $user->get_location();
- /src/proploader.php in line 189
[ Method: BS_Session_Manager::__construct() ]
0184 /**
0185 * @return BS_Session_Manager the property
0186 */
0187 protected function sessions()
0188 {
0189 $c = new BS_Session_Manager();
0190 $c->set_online_timeout(BS_ONLINE_TIMEOUT);
0191 return $c;
0192 }
0193
0194 /**
0195 * @return BS_User_Current the property
- /fws/proploader.php in line 49
[ Method: BS_PropLoader::sessions() ]
0044 {
0045 if(!method_exists($this,$name))
0046 FWS_Helper::error('The method '.$name.'() does not exist.
0047 Does the property you requested exist?');
0048
0049 return $this->$name();
0050 }
0051
0052 /**
0053 * @return FWS_Document the document
0054 */
0055 protected function doc()
- /fws/propaccessor.php in line 116
[ Method: FWS_PropLoader::load() ]
0111 * @return mixed the property
0112 */
0113 protected final function get($name)
0114 {
0115 if(!isset($this->_instances[$name]))
0116 $this->_instances[$name] = $this->_loader->load($name);
0117 return $this->_instances[$name];
0118 }
0119
0120 /**
0121 * @return FWS_Document the document-instance
0122 */
- /src/propaccessor.php in line 124
[ Method: FWS_PropAccessor::get() ]
0119 /**
0120 * @return BS_Session_Manager the sessions-property
0121 */
0122 public function sessions()
0123 {
0124 return $this->get('sessions');
0125 }
0126
0127 /**
0128 * @return BS_User_Current the user-property
0129 */
0130 public function user()
- /src/init.php in line 52
[ Method: BS_PropAccessor::sessions() ]
0047 $e->set_logger(new BS_Error_Logger());
0048 if(PHP_SAPI != 'cli')
0049 $e->set_output_handler(new FWS_Error_Output_Default(BS_ERRORS_SHOW_CALLTRACE,BS_ERRORS_SHOW_BBCODE));
0050
0051 // init the session-stuff
0052 $sessions = FWS_Props::get()->sessions();
0053 $user = FWS_Props::get()->user();
0054
0055 // disable cookies in the ACP
0056 if(defined('BS_ACP'))
0057 $user->set_use_cookies(false);
0058
- /index.php in line 80
[ Function: include_once() ]
0075 // set the path
0076 FWS_Path::set_server_app(BS_PATH);
0077 FWS_Path::set_client_app(BS_PATH);
0078
0079 // init boardsolution
0080 include_once(BS_PATH.'src/init.php');
0081
0082 // show the page
0083 $doc = new BS_Front_Document();
0084 FWS_Props::get()->set_doc($doc);
0085 echo $doc->render();
0086 ?>