public function __construct() { parent::__construct(); /** * If the user is connected, we get his session 'member_username' otherwise we get the username of the url. */ $this->sUsername = !$this->httpRequest->getExists('username') ? $this->session->get('member_username') : $this->httpRequest->get('username'); /** * FIRST UPPER FOR THE USERNAME * We can do this because the SQL search is case insensitive. * Be careful not to do this if you need this user name in the method \PH7\Framework\Layout\Html::getUserAvatar() * since it can not find the folder of the user because it is not case insensitive. */ $this->sUsername = $this->str->upperFirst($this->sUsername); $this->view->username = $this->sUsername; $this->oUserModel = new UserModel(); $this->iId = $this->oUserModel->getId(null, $this->sUsername); $this->oVisitorModel = new VisitorModel($this->iId); $this->oPage = new Page(); $this->view->avatarDesign = new AvatarDesignCore(); // Avatar Design Class /** * Predefined meta_description. */ $this->view->meta_description = t('The Last Visitors of %0%. Meet new people and make new visitors on your social profile, Make new Visitors and Friends with %site_name%', $this->sUsername); /** * Predefined meta_keywords tags. */ $this->view->meta_keywords = t('visitor,friend,dating,social networking,visitors,spy,profile,social,%0%', $this->sUsername); }
public function __construct() { parent::__construct(); $this->oUserModel = new AffiliateCoreModel(); $this->oPayModel = new PaymentModel(); $this->iProfileId = $this->session->get('member_id'); }
public function __construct() { parent::__construct(); $this->oPage = new Page(); $this->oModeratorModel = new ModeratorModel(); $this->view->oUser = new UserCore(); }
public function __construct() { parent::__construct(); // Objects $this->oAff = new Affiliate(); $this->oAffModel = new AffiliateModel(); }
public function __construct() { parent::__construct(); $this->_oModule = new Module(); $this->view->oFile = new File(); $this->view->oModule = $this->_oModule; }
public function __construct() { parent::__construct(); $this->oNoteModel = new NoteModel(); $this->oPage = new Page(); $this->iApproved = AdminCore::auth() && !$this->session->exists('login_user_as') ? null : 1; $this->view->member_id = $this->session->get('member_id'); }
public function __construct() { parent::__construct(); $this->oReportModel = new ReportModel(); $this->view->avatarDesign = new AvatarDesignCore(); // Avatar Design Class $this->view->oUserModel = new UserCoreModel(); }
public function __construct() { parent::__construct(); // Enable caching for all pages of this module $this->view->setCaching(true); // Global variables for all template pages of the module $this->view->admin_email = DbConfig::getSetting('adminEmail'); }
public function __construct() { parent::__construct(); $this->oGameModel = new GameModel(); $this->oPage = new Page(); $this->sMetaKeywords = t('game,free,flash,game site,flash game,games,gaming,online game'); // Predefined meta_keywords tags $this->view->meta_keywords = $this->sMetaKeywords; }
public function __construct() { parent::__construct(); $this->oCommentModel = new CommentModel(); $this->sTable = $this->httpRequest->get('table'); $this->view->table = $this->sTable; $this->iId = is_numeric($this->httpRequest->get('id')) ? $this->httpRequest->get('id') : null; // Predefined meta_keywords tags $this->view->meta_keywords = t('comment,comments,social,community,friend,social network,people,dating,post,wall,social dating'); // Adding Css Style for the Comment Post $this->design->addCss(PH7_LAYOUT . PH7_SYS . PH7_MOD . $this->registry->module . PH7_SH . PH7_TPL . PH7_TPL_MOD_NAME . PH7_SH . PH7_CSS, 'common.css'); }
public function __construct() { parent::__construct(); $this->oForumModel = new ForumModel(); $this->oPage = new Page(); $this->view->avatarDesign = new AvatarDesignCore(); // Avatar Design Class $this->view->member_id = $this->session->get('member_id'); // Predefined meta_keywords tags $this->view->meta_keywords = t('forum,discussion,dating forum,social forum,people,meet people,forums,free dating forum,free forum,community forum,social forum'); // Adding Css Style for the Layout Forum $this->design->addCss(PH7_LAYOUT . PH7_SYS . PH7_MOD . $this->registry->module . PH7_SH . PH7_TPL . PH7_TPL_MOD_NAME . PH7_SH . PH7_CSS, 'common.css'); }
public function __construct() { parent::__construct(); $this->oAdmin = new AdminCore(); $this->oAdminModel = new AdminModel(); // Assigns variables for views $this->view->designSecurity = new Framework\Layout\Html\Security(); // Security Design Class $this->view->dateTime = $this->dateTime; // Date Time Class $this->view->avatarDesign = new AvatarDesignCore(); // For Avatar User }
public function __construct() { parent::__construct(); $this->oVideoModel = new VideoModel(); $this->oPage = new Page(); $this->sUsername = $this->httpRequest->get('username'); $oUser = new UserCore(); $this->sUsernameLink = $oUser->getProfileLink($this->sUsername); $this->view->oUser = $oUser; unset($oUser); $this->view->member_id = $this->session->get('member_id'); $this->iProfileId = (new UserCoreModel())->getId(null, $this->sUsername); // Predefined meta_keywords tags $this->view->meta_keywords = t('video,videos,free,free videos,music,online,watch,dating,video dating,social,community,social network,people video,flirt'); }
public function __construct() { parent::__construct(); $this->oPictureModel = new PictureModel(); $this->oPage = new Page(); $this->sUsername = $this->httpRequest->get('username'); $oUser = new UserCore(); $this->sUsernameLink = $oUser->getProfileLink($this->sUsername); $this->view->oUser = $oUser; unset($oUser); $this->view->member_id = $this->session->get('member_id'); $this->iProfileId = (new UserCoreModel())->getId(null, $this->sUsername); // Predefined meta_keywords tags $this->view->meta_keywords = t('picture,photo,pictures,photos,album,albums,picture album,photo album,gallery,picture dating'); }
public function __construct() { parent::__construct(); $this->oBirthModel = new BirthdayModel(); $this->oPage = new Page(); $this->sCurrentDate = $this->dateTime->get()->date(); $this->view->avatarDesign = new AvatarDesignCore(); // Avatar Design Class /** * Predefined meta_description. */ $this->view->meta_description = t('Users Birthday %0%', $this->sCurrentDate); /** * Predefined meta_keywords tags. */ $this->view->meta_keywords = t('birthday,birthdate,anniversary,birth,friend,dating,social networking,profile,social'); }
public function __construct() { parent::__construct(); $this->oMailModel = new MailModel(); $this->oPage = new Page(); $this->_iProfileId = $this->session->get('member_id'); $this->_bAdminLogged = AdminCore::auth() && !UserCore::auth(); $this->view->dateTime = $this->dateTime; $this->view->avatarDesign = new AvatarDesignCore(); // Avatar Design Class $this->view->designSecurity = new Framework\Layout\Html\Security(); // Security Design Class $this->view->csrf_token = (new Framework\Security\CSRF\Token())->generate('mail'); $this->view->member_id = $this->_iProfileId; // Adding Css Style Content and JavaScript for Mail and Form $this->design->addCss(PH7_LAYOUT . PH7_SYS . PH7_MOD . $this->registry->module . PH7_SH . PH7_TPL . PH7_TPL_MOD_NAME . PH7_SH . PH7_CSS, 'mail.css'); $this->design->addJs(PH7_DOT, PH7_STATIC . PH7_JS . 'form.js,' . PH7_LAYOUT . PH7_SYS . PH7_MOD . $this->registry->module . PH7_SH . PH7_TPL . PH7_TPL_MOD_NAME . PH7_SH . PH7_JS . 'mail.js'); }
public function __construct() { parent::__construct(); $this->_bAdminLogged = AdminCore::auth() && !User::auth(); $this->_iProfileId = (int) ($this->_bAdminLogged && $this->httpRequest->getExists('profile_id')) ? $this->httpRequest->get('profile_id') : $this->session->get('member_id'); $this->_sUsername = $this->_bAdminLogged && $this->httpRequest->getExists('username') ? $this->httpRequest->get('username') : $this->session->get('member_username'); $this->_sFirstName = $this->_bAdminLogged && $this->httpRequest->getExists('first_name') ? $this->httpRequest->get('first_name') : $this->session->get('member_first_name'); $this->_sSex = $this->_bAdminLogged && $this->httpRequest->getExists('sex') ? $this->httpRequest->get('sex') : $this->session->get('member_sex'); /** For the avatar on the index and avatar page **/ $this->view->username = $this->_sUsername; $this->view->first_name = $this->_sFirstName; $this->view->sex = $this->_sSex; $this->view->avatarDesign = new AvatarDesignCore(); // Avatar Design Class /** For the wallpaper on the index and design page **/ $this->view->path_img_background = $this->_getWallpaper(); /** For the 'display_status' function on the index and privacy page **/ $this->design->addJs(PH7_LAYOUT . PH7_SYS . PH7_MOD . $this->registry->module . PH7_SH . PH7_TPL . PH7_TPL_MOD_NAME . PH7_SH . PH7_JS, 'common.js'); }
public function __construct() { parent::__construct(); $this->oUserModel = new UserModel(); $this->oFriendModel = new FriendModel(); $this->oPage = new Page(); /** * Adding JavaScript file for Ajax friend. */ $this->design->addJs(PH7_LAYOUT . PH7_SYS . PH7_MOD . $this->registry->module . PH7_SH . PH7_TPL . PH7_TPL_MOD_NAME . PH7_SH . PH7_JS, 'friend.js'); /** * @desc The Session of the User. */ $this->iMemberId = $this->session->get('member_id'); /** * If the user is connected, we get his session 'member_username' otherwise we get the username of the url. */ $this->sUsername = !$this->httpRequest->getExists('username') ? $this->session->get('member_username') : $this->httpRequest->get('username'); /** * FIRST UPPER FOR THE USERNAME * We can do this because the SQL search is case insensitive. * Be careful not to do this if you need this user name in the method \PH7\Framework\Layout\Html::getUserAvatar() * since it can not find the folder of the user because it is not case insensitive. */ $this->sUsername = $this->str->upperFirst($this->sUsername); $this->iId = $this->oUserModel->getId(null, $this->sUsername); $this->view->username = $this->sUsername; $this->view->sess_member_id = $this->iMemberId; $this->view->member_id = $this->iId; $this->view->csrf_token = (new Framework\Security\CSRF\Token())->generate('friend'); $this->view->avatarDesign = new AvatarDesignCore(); /** * Predefined meta_description. */ $this->view->meta_description = t('The Hot Friend of %0%. Meet new people and make new friends, sex friends, hot friends for Flirt, Speed Dating or social relationship with %site_name%', $this->sUsername); /** * Predefined meta_keywords tags. */ $this->view->meta_keywords = t('friend,friends,girl friend,boy friend,sex friend,hot friend,new friend,friendship,dating,flirt,%0%', $this->sUsername); }
public function __construct() { parent::__construct(); $this->sUserAuth = User::auth(); }
public function __construct() { parent::__construct(); $this->oSubscriptionModel = new SubscriptionModel(); }
public function __construct() { parent::__construct(); $this->oBlogModel = new BlogModel(); $this->oPage = new Page(); }
public function __construct() { parent::__construct(); $this->oRest = new Rest(); }
public function __construct() { parent::__construct(); $this->oAdminModel = new AdminModel(); }
public function __construct() { parent::__construct(); $this->oForumModel = new ForumModel(); }
public function __construct() { parent::__construct(); $this->oValidateModel = new ValidateSiteModel(); }