Вход Регистрация
Файл: Application/system/controllers/followers.php
Строк: 43
<?php

    
if( !$this->network->id ) {
        
$this->redirect('home');
    }
    
    
// We check if the site is open to all
    
if ($C->PROTECT_OUTSIDE_PAGES && !$this->user->is_logged) {
        
$this->redirect('home');
    }
    
    
// Obtain user data profile
    
$D->$this->network->get_user_by_id(intval($this->params->iduser));
    if( !
$D->) {
        
$this->redirect('dashboard');
    }
    
    
/*************************************************************************/
    // needed before proceeding
    
require_once('_all-required-language.php');
    
    
/*************************************************************************/

    
$this->load_langfile('global/global.php');    
    
$this->load_langfile('outside/profile.php');

    
/*************************************************************************/
    
    // needed before proceeding
    
require_once('_all-required-profile.php');
    
    
/*************************************************************************/

    // If allowed, it loaded data required for this section
    
if ($D->show_profile==1) {

        
//We load the user's followers
        
$D->totalfollowers $this->db2->fetch_field('SELECT count(iduser) FROM users, relations WHERE iduser=subscriber AND leader='.$D->u->iduser);
        
        
$r $this->db2->query('SELECT iduser, code, firstname, lastname, username, avatar, num_posts, num_followers, num_following, validated FROM users, relations WHERE iduser=subscriber AND leader='.$D->u->iduser.' ORDER BY rltdate DESC LIMIT 0,'.$C->NUM_FOLLOWERS_PAGE);

        
$D->numfollower $this->db2->num_rows();

        
$D->htmlFollowers '';
        
        while( 
$obj $this->db2->fetch_object($r) ) {
            
$D->isThisUserVerified $obj->validated==1?TRUE:FALSE;
            
$D->f_name = (empty($obj->firstname) || empty($obj->lastname))?stripslashes($obj->username):(stripslashes($obj->firstname).' '.stripslashes($obj->lastname));
            
$D->f_codeuser $obj->code;
            
$D->f_avatar $obj->avatar;
            
$D->f_numphotos $obj->num_posts;
            
$D->f_username $obj->username;
            
$D->htmlFollowers .= $this->load_template('__profile-one-follower.php'FALSE);
        }
        
        unset(
$r$obj);
    }

    
/*************************************************************************/
    
    
$D->page_title $D->nameUser.' - '.$this->lang('profile_followers_title').' - '.$C->SITE_TITLE;
    
    
$D->optionactive 0;

    
$this->load_template('followers.php');
?>
Онлайн: 4
Реклама