コード例 #1
0
ファイル: series.php プロジェクト: Dogukan2/dizilab
 function index($permalink = NULL)
 {
     $data = $this->_data;
     if (($data['series'] = $this->dizi->get_show($permalink)) === FALSE) {
         redirect('404', 'refresh');
     }
     $data['title'] = $data['series']['title'] . ' | ' . title();
     $data['season_count'] = $this->series_model->sezon_sayisi($data['series']['dizid']);
     $data['episode_count'] = $this->series_model->bolum_sayisi($data['series']['dizid']);
     $data['latest_episode'] = $this->series_model->en_son_bolum($data['series']['dizid']);
     $data['subscribers'] = $this->series_model->takipcileri($data['series']['dizid']);
     $data['good_episodes'] = $this->series_model->en_populer_bolumler($data['series']['dizid']);
     $data['bad_episodes'] = $this->series_model->en_kotu_bolumler($data['series']['dizid']);
     $data['seasons'] = $this->series_model->sezonlar($data['series']['dizid']);
     $data['ep_season1'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 1);
     $data['ep_season2'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 2);
     $data['ep_season3'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 3);
     $data['ep_season4'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 4);
     $data['ep_season5'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 5);
     $data['ep_season6'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 6);
     $data['ep_season7'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 7);
     $data['ep_season8'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 8);
     $data['ep_season9'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 9);
     $data['ep_season10'] = $this->series_model->sezon_a_ait($data['series']['dizid'], 10);
     if (isset($_SESSION['login'])) {
         $data['user_watched_list'] = $this->user_model->get_user_watched_list($data['i']['user_id']);
     }
     if (!$this->agent->is_mobile()) {
         $this->display(array('header', 'series', 'sidebar', 'footer'), $data);
     } else {
         $this->display(array('mobile/header', 'mobile/series', 'mobile/footer'), $data);
     }
 }
コード例 #2
0
function addon_title($line, $subline)
{
    $subtitle = $subline;
    if (is_array($subline)) {
        $subtitle = '   ';
        $numPages = count($subline);
        $i = 0;
        foreach ($subline as $subpage) {
            $link = $subpage[0];
            $label = $subpage[1];
            $active = empty($_REQUEST['subpage']) && $link == '' || !empty($_REQUEST['subpage']) && $_REQUEST['subpage'] == $link;
            // Auf der Aktiven seite den Link nicht anzeigen
            if ($active) {
                $format = '%s';
                $subtitle .= sprintf($format, $label);
            } else {
                if ($link == '') {
                    $format = '<a href="?page=' . $_REQUEST['page'] . '">%s</a>';
                    $subtitle .= sprintf($format, $label);
                } else {
                    $format = '<a href="?page=' . $_REQUEST['page'] . '&subpage=%s">%s</a>';
                    $subtitle .= sprintf($format, $link, $label);
                }
            }
            if ($i != $numPages - 1) {
                $subtitle .= ' | ';
            }
            $i++;
        }
    }
    title($line, $subtitle);
}
コード例 #3
0
ファイル: index.php プロジェクト: rotvulpix/php-nuke
function SendSite($yname, $ymail, $fname, $fmail, $random_num = "0", $gfx_check)
{
    global $sitename, $slogan, $nukeurl, $module_name, $gfx_chk, $sitekey;
    if (empty($fname) or empty($fmail) or empty($yname) or empty($ymail)) {
        include "header.php";
        title("{$sitename} - " . _RECOMMEND . "");
        OpenTable();
        echo "<center>" . _SENDSITEERROR . "<br><br>" . _GOBACK . "";
        CloseTable();
        include "footer.php";
        die;
    }
    $fname = removecrlf(filter($fname, "nohtml"));
    $fmail = validate_mail(removecrlf(filter($fmail, "nohtml")));
    $yname = removecrlf(filter($yname, "nohtml"));
    $ymail = validate_mail(removecrlf(filter($ymail, "nohtml")));
    $datekey = date("F j");
    $rcode = hexdec(md5($_SERVER['HTTP_USER_AGENT'] . $sitekey . $random_num . $datekey));
    $code = substr($rcode, 2, 3);
    if (extension_loaded("gd") and $code != $gfx_check and $gfx_chk != 0) {
        $mess = 1;
        Header("Location: modules.php?name={$module_name}&op=RecommendSite&mess={$mess}");
    } else {
        $subject = "" . _INTSITE . " {$sitename}";
        $message = "" . _HELLO . " {$fname}:\n\n" . _YOURFRIEND . " {$yname} " . _OURSITE . " {$sitename} " . _INTSENT . "\n\n\n" . _FSITENAME . " {$sitename}\n{$slogan}\n" . _FSITEURL . " {$nukeurl}\n";
        mail($fmail, $subject, $message, "From: \"{$yname}\" <{$ymail}>\nX-Mailer: PHP/" . phpversion());
        update_points(3);
        Header("Location: modules.php?name={$module_name}&op=SiteSent&fname={$fname}");
    }
}
コード例 #4
0
ファイル: forum.php プロジェクト: Dogukan2/dizilab
 public function topic($is_at, $thix, $that)
 {
     $data = $this->_data;
     $data['title'] = 'Forum | ' . title();
     $data['topic'] = $this->forum->get_topic($is_at, $thix, $that, $limit = 11);
     $this->display(array('header', 'pages/forum/topic', 'sidebar', 'footer'), $data);
 }
コード例 #5
0
ファイル: series.php プロジェクト: DeadRishing/dizilab
 function index($permalink = NULL)
 {
     $data = $this->_data;
     if (($data['series'] = $this->srs->get_show($permalink)) === FALSE) {
         redirect('404', 'refresh');
     }
     $data['title'] = $data['series']['title'] . ' | ' . title();
     $data['season_count'] = $this->series_model->ssnsthenum($data['series']['dizid']);
     $data['episode_count'] = $this->series_model->sctnthenum($data['series']['dizid']);
     $data['latest_episode'] = $this->series_model->final_section($data['series']['dizid']);
     $data['subscribers'] = $this->series_model->followers($data['series']['dizid']);
     $data['good_episodes'] = $this->series_model->most_popular_sections($data['series']['dizid']);
     $data['bad_episodes'] = $this->series_model->worst_sections($data['series']['dizid']);
     $data['seasons'] = $this->series_model->ssns($data['series']['dizid']);
     $data['ep_season1'] = $this->series_model->of_the_season($data['series']['dizid'], 1);
     $data['ep_season2'] = $this->series_model->of_the_season($data['series']['dizid'], 2);
     $data['ep_season3'] = $this->series_model->of_the_season($data['series']['dizid'], 3);
     $data['ep_season4'] = $this->series_model->of_the_season($data['series']['dizid'], 4);
     $data['ep_season5'] = $this->series_model->of_the_season($data['series']['dizid'], 5);
     $data['ep_season6'] = $this->series_model->of_the_season($data['series']['dizid'], 6);
     $data['ep_season7'] = $this->series_model->of_the_season($data['series']['dizid'], 7);
     $data['ep_season8'] = $this->series_model->of_the_season($data['series']['dizid'], 8);
     $data['ep_season9'] = $this->series_model->of_the_season($data['series']['dizid'], 9);
     $data['ep_season10'] = $this->series_model->of_the_season($data['series']['dizid'], 10);
     if (isset($_SESSION['login'])) {
         $data['user_watched_list'] = $this->user_model->get_user_watched_list($data['i']['user_id']);
     }
     if (!$this->agent->is_mobile()) {
         $this->display(array('header', 'series', 'sidebar', 'footer'), $data);
     } else {
         $this->display(array('mobile/header', 'mobile/series', 'mobile/footer'), $data);
     }
 }
コード例 #6
0
ファイル: series.php プロジェクト: algoritmafakiri/dizilab
 function index($permalink = NULL)
 {
     $data = $this->_data;
     if (($data['series'] = $this->srs->get_Series($permalink)) === FALSE) {
         redirect('404', 'refresh');
     }
     $data['title'] = $data['series']['title'] . ' | ' . title();
     $this->session->set_userdata('series_id', $data['series']['dizid']);
     $data['controller'] = 'series';
     $data['latest_episode'] = $this->series_model->_list($data['series']['dizid'], 'last_episode', 1);
     $data['good_episodes'] = $this->series_model->_list($data['series']['dizid'], 'good_episodes', 5);
     $data['bad_episodes'] = $this->series_model->_list($data['series']['dizid'], 'bad_episodes', 5);
     $data['season_count'] = $this->series_model->_count($data['series']['dizid'], 'seasons', null);
     $data['episode_count'] = $this->series_model->_count($data['series']['dizid'], 'episodes', null);
     $data['subscribers'] = $this->series_model->_count($data['series']['dizid'], 'followers', null);
     $data['popular_comments'] = false;
     $data['yorumlar'] = $this->series_model->Comments($data['series']['dizid']);
     $data['yorum_sayisi'] = $this->series_model->nofcomm($data['series']['dizid']);
     $data['casts'] = $this->series_model->_List($data['series']['dizid'], 'casts', 9);
     #$data['seasons'] = $this->series_model->_count($data['series']['dizid'],'seasons','yazdir');
     #$data['ep_season1'] = $this->series_model->of_the_season($data['series']['dizid'],1); #,2,3.....
     #$data['ep_season2'] = $this->series_model->of_the_season($data['series']['dizid'],2); #		gibi
     $data['seasons'] = $this->series_model->_count($data['series']['dizid'], 'seasons', 'yazdir');
     $data['episodes'] = $this->srs->get_episodes($data['series']['dizid'], $data['seasons']);
     $data['forums'] = $this->series_model->get_Forums($data['series']['permalink']);
     if (isset($_SESSION['login'])) {
         $data['series_follow'] = $this->user_model->_Ctrl($_SESSION['user_id'], $data['series']['dizid'], 'series_follow', null);
         $data['user_watched_list'] = $this->user_model->_list($data['i']['user_id'], 'user_watched_list');
     }
     if (!$this->agent->is_mobile()) {
         $this->display(array('header', 'pages/series', 'sidebar', 'footer'), $data);
     } else {
         $this->display(array('mobile_header', 'pages/mobile_series', 'mobile_footer'), $data);
     }
 }
コード例 #7
0
ファイル: test.php プロジェクト: beingsane/JoomGen-3.0
 public function testTitle()
 {
     $simple_name = 'phone';
     $this->assertEquals('Phone', title($simple_name));
     $complex_name = 'contact_phone';
     $this->assertEquals('Contact Phone', title($complex_name));
 }
コード例 #8
0
function js(){
	header("content-type: application/x-javascript");
	$tpl=new templates();
	$page=CurrentPageName();
	$t=time();
	$tpl=new templates();
	$compile_squid_ask=$tpl->javascript_parse_text("{compile_squid_ask}");
	if($_GET["ask"]=="yes"){
		$warn="if(!confirm('$compile_squid_ask')){return;}";
	}
	
	if(isset($_GET["CheckCaches"])){
		$warn=$tpl->javascript_parse_text("{check_caches_warning}");
		$warn="if(!confirm('$warn')){return;}";
		
	}	
	
	$suffix=suffix();
	$title=title();
	
	echo "
	function Start$t(){	
		$warn
		YahooWinHide();
		RTMMail('800','$page?popup=yes$suffix','$title');
	}
	Start$t();";
	
	
}
コード例 #9
0
ファイル: functions.php プロジェクト: rotvulpix/php-nuke
function startjournal($sitename, $user)
{
    global $module_name;
    $user = filter($user, "nohtml");
    $sitename = filter($sitename, "nohtml");
    if (is_user($user)) {
        $j_user1 = "<center>[ <a href=\"modules.php?name={$module_name}\">" . _JOURNALDIR . "</a> | <a href=\"modules.php?name={$module_name}&file=edit\">" . _YOURJOURNAL . "</a> ]</center>";
        $j_user2 = "";
    } else {
        $j_user1 = "<center>[ <a href=\"modules.php?name={$module_name}\">" . _JOURNALDIR . "</a> | <a href=\"modules.php?name=Your_Account&op=new_user\">" . _CREATEACCOUNT . "</a> ]</center>";
        $j_user2 = "<br><center><font class=\"tiny\">" . _MEMBERSCAN . "</font></center>";
    }
    title("{$sitename}: " . _USERSJOURNAL . "");
    if (is_user($user)) {
        include "modules/Your_Account/navbar.php";
        OpenTable();
        nav();
        CloseTable();
        echo "<br>";
    }
    OpenTable();
    echo "<center><img src=modules/{$module_name}/images/bgimage.gif><br><font class=title><b>" . _USERSJOURNAL . "</b></font></center>";
    echo "{$j_user1}";
    echo "{$j_user2}";
    CloseTable();
}
コード例 #10
0
ファイル: friend.php プロジェクト: rotvulpix/php-nuke
function FriendSend($sid)
{
    global $user, $cookie, $prefix, $db, $user_prefix, $module_name;
    $sid = intval($sid);
    if (!isset($sid)) {
        fdie();
    }
    include "header.php";
    $row = $db->sql_fetchrow($db->sql_query("SELECT title FROM " . $prefix . "_stories WHERE sid='{$sid}'"));
    $title = filter($row['title'], "nohtml");
    title("" . _FRIEND . "");
    OpenTable();
    echo "<center><font class=\"content\"><b>" . _FRIEND . "</b></font></center><br><br>" . "" . _YOUSENDSTORY . " <b>{$title}</b> " . _TOAFRIEND . "<br><br>" . "<form action=\"modules.php?name={$module_name}&amp;file=friend\" method=\"post\">" . "<input type=\"hidden\" name=\"sid\" value=\"{$sid}\">";
    if (is_user($user)) {
        $row2 = $db->sql_fetchrow($db->sql_query("SELECT name, username, user_email FROM " . $user_prefix . "_users WHERE user_id = '" . intval($cookie[0]) . "'"));
        if (empty($row['name'])) {
            $yn = filter($row2['username'], "nohtml");
        } else {
            $yn = filter($row2['name'], "nohtml");
        }
        $ye = filter($row2['user_email'], "nohtml");
    }
    echo "<b>" . _FYOURNAME . " </b> {$yn} <input type=\"hidden\" name=\"yname\" value=\"{$yn}\"><br><br>\n" . "<b>" . _FYOUREMAIL . " </b> {$ye} <input type=\"hidden\" name=\"ymail\" value=\"{$ye}\"><br><br><br>\n" . "<b>" . _FFRIENDNAME . " </b> <input type=\"text\" name=\"fname\"><br><br>\n" . "<b>" . _FFRIENDEMAIL . " </b> <input type=\"text\" name=\"fmail\"><br><br>\n" . "<input type=\"hidden\" name=\"op\" value=\"SendStory\">\n" . "<input type=\"submit\" value=" . _SEND . ">\n" . "</form>\n";
    CloseTable();
    include 'footer.php';
}
コード例 #11
0
ファイル: moderation.php プロジェクト: rotvulpix/php-nuke
 function mod_menu()
 {
     global $prefix, $db, $user_prefix, $admin_file;
     $num_news = $db->sql_numrows($db->sql_query("SELECT * FROM " . $prefix . "_comments_moderated"));
     $num_surveys = $db->sql_numrows($db->sql_query("SELECT * FROM " . $prefix . "_pollcomments_moderated"));
     $num_reviews = $db->sql_numrows($db->sql_query("SELECT * FROM " . $prefix . "_reviews_comments_moderated"));
     $num_users = $db->sql_numrows($db->sql_query("SELECT user_id FROM " . $user_prefix . "_users WHERE karma!=0"));
     title("" . _MODERATIONKARMA . "");
     OpenTable();
     echo "<center><b>" . _CONTENTMODERATION . "</b><br>" . _SELECTOPTION . "<br><br>[ ";
     if ($num_news != 0) {
         echo "<a href=\"" . $admin_file . ".php?op=moderation_news\">" . _NEWSCOMMENTS . "</a> (<b>" . $num_news . "</b>) | ";
     } else {
         echo "" . _NEWSCOMMENTS . " (<b>" . $num_news . "</b>) | ";
     }
     if ($num_surveys != 0) {
         echo "<a href=\"" . $admin_file . ".php?op=moderation_surveys\">" . _SURVEYCOMMENTS . "</a> (<b>" . $num_surveys . "</b>) | ";
     } else {
         echo "" . _SURVEYCOMMENTS . " (<b>" . $num_surveys . "</b>) | ";
     }
     if ($num_reviews != 0) {
         echo "<a href=\"" . $admin_file . ".php?op=moderation_reviews\">" . _REVIEWSCOMMENTS . "</a> (<b>" . $num_reviews . "</b>) | ";
     } else {
         echo "" . _REVIEWSCOMMENTS . " (<b>" . $num_reviews . "</b>) | ";
     }
     if ($num_users != 0) {
         echo "<a href=\"" . $admin_file . ".php?op=moderation_users_list\">" . _ALLMARKEDUSERS . "</a> (<b>" . $num_users . "</b>) ]</center>";
     } else {
         echo "" . _ALLMARKEDUSERS . " (<b>" . $num_users . "</b>) ]</center>";
     }
     CloseTable();
     echo "<br>";
 }
コード例 #12
0
ファイル: head.php プロジェクト: webvitalii/web-services
function head()
{
    $path = pathinfo($_SERVER['SCRIPT_NAME']);
    $folder = $path['dirname'] . '/';
    $filename = $path['basename'];
    $title = title($filename);
    ?>

<!-- head include begin -->

<?php 
    echo '	<title>' . $title . '</title>';
    ?>

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
	<script src="../js/jquery.js"></script>
	<script src="../js/jquery-ui/jquery-ui.js"></script>
	
	<link href="../js/jquery-ui/jquery-ui.css" rel="stylesheet" />
	
	<link href="../css/grey.css" rel="stylesheet" />
	
<!-- head include end -->

<?php 
}
コード例 #13
0
 public static function standings()
 {
     global $lng;
     // All stars
     title($lng->getTrn('menu/statistics_menu/star_stn'));
     echo $lng->getTrn('common/notice_spp') . "<br><br>\n";
     HTMLOUT::standings(STATS_STAR, false, false, array('url' => urlcompile(T_URL_STANDINGS, T_OBJ_STAR, false, false, false)));
 }
コード例 #14
0
ファイル: forum.php プロジェクト: algoritmafakiri/dizilab
 public function topic($is_at, $thix, $that)
 {
     $data = $this->_data;
     $data['title'] = 'Forum | ' . title();
     $data['topic'] = $this->frm->get_Topic($is_at, $thix, $that);
     $data['comments'] = $this->forum_model->get_Comments($thix, 9);
     $this->display(array('header', 'pages/forum/topic', 'sidebar', 'footer'), $data);
 }
コード例 #15
0
ファイル: template.inc.php プロジェクト: mehulsbhatt/seltzer
/**
 * Assign variables to be set for a template.
 * @param $vars The previously set variables.
 */
function template_preprocess($vars)
{
    global $config_org_name;
    global $config_base_path;
    $vars['title'] = title();
    $vars['org_name'] = $config_org_name;
    $vars['base_path'] = $config_base_path;
    $vars['hostname'] = $_SERVER['SERVER_NAME'];
    return $vars;
}
コード例 #16
0
ファイル: profile.php プロジェクト: DeadRishing/dizilab
 public function cast($name = NULL)
 {
     $data = $this->_data;
     $data['cast'] = $this->www->get_cast($name);
     if (empty($data['cast'])) {
         redirect('404', 'refresh');
     }
     $data['title'] = $data['cast']['name'] . ' | ' . title();
     $data['description'] = $data['cast']['name'] . ' hakkında, ' . $data['cast']['name'] . ' rol aldığı diziler ve daha fazlası..';
     $this->display(array('header', 'profile/cast', 'sidebar', 'footer'), $data);
 }
コード例 #17
0
function js()
{
    header("content-type: application/x-javascript");
    $tpl = new templates();
    $page = CurrentPageName();
    $t = time();
    $tpl = new templates();
    $suffix = suffix();
    $title = title();
    echo "\n\tfunction Start{$t}(){\t\n\t\t{$warn}\n\t\tYahooWinHide();\n\t\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t}\n\tStart{$t}();";
}
コード例 #18
0
 public static function main($argv)
 {
     global $lng;
     title($lng->getTrn('name', __CLASS__));
     $teams = self::_teamsSelect();
     if (is_array($teams)) {
         list($tid1, $tid2) = $teams;
         self::_compare($tid1, $tid2);
     }
     return true;
 }
コード例 #19
0
function js()
{
    header("content-type: application/x-javascript");
    $tpl = new templates();
    $page = CurrentPageName();
    $t = time();
    $tpl = new templates();
    $compile_squid_ask = $tpl->javascript_parse_text("{build_webfiltering_rules} ?");
    $suffix = suffix();
    $title = title();
    echo "\n\tfunction Start{$t}(){\t\n\t\t//if(!confirm('{$compile_squid_ask}')){return;}\n\t\tYahooWinHide();\n\t\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t}\n\tStart{$t}();";
}
コード例 #20
0
function js()
{
    header("content-type: application/x-javascript");
    $tpl = new templates();
    $page = CurrentPageName();
    $t = time();
    $tpl = new templates();
    $suffix = suffix();
    $title = title();
    $ask = "if(!confirm('" . $tpl->javascript_parse_text("{enable_ask_firewall}") . "')){return;}";
    echo "\n\tfunction Start{$t}(){\t\n\t\t{$ask}\n\t\tYahooWinHide();\n\t\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t}\n\tStart{$t}();";
}
コード例 #21
0
function js()
{
    header("content-type: application/x-javascript");
    $tpl = new templates();
    $page = CurrentPageName();
    $t = time();
    $tpl = new templates();
    $compile_squid_ask = $tpl->javascript_parse_text("{confirm_dnsg_compile_db}");
    $warn = "if(!confirm('{$compile_squid_ask}')){return;}";
    $suffix = suffix();
    $title = title();
    echo "\n\tfunction Start{$t}(){\t\n\t\t{$warn}\n\t\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t}\n\tStart{$t}();";
}
コード例 #22
0
function js()
{
    header("content-type: application/x-javascript");
    $tpl = new templates();
    $page = CurrentPageName();
    $t = time();
    $tpl = new templates();
    $export_password = $tpl->javascript_parse_text("{export_password}");
    $suffix = suffix();
    $title = title();
    $tt = time();
    echo "\nvar xSave{$t}=function (obj) {\n\tvar results=obj.responseText;\n\tif (results.length>3){alert(results);return;}\n\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t\n}\nfunction Start{$t}(){\n\tvar XHR = new XHRConnection();\n\tvar pp=prompt('{$export_password}');\n\tif(!pp){return;}\n\tXHR.appendData('save-exportpass',pp);\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\t\nStart{$t}();";
}
コード例 #23
0
ファイル: Gear.php プロジェクト: brussens/cogear2
 /**
  * Update title with menu changes
  */
 public function update(SplSubject $menu)
 {
     if (!$menu->options->title) {
         return;
     }
     foreach ($menu as $key => $item) {
         if ($menu->options->titleActiveOnly && !$item->active) {
             continue;
         }
         if (FALSE !== $item->title) {
             title($item->title === TRUE ? $item->label : $item->title);
         }
     }
 }
コード例 #24
0
ファイル: user.php プロジェクト: Dogukan2/dizilab
 public function followed_shows()
 {
     $data = $this->_data;
     if (empty($data['i']['user_id'])) {
         redirect('/', 'refresh');
     }
     $data['title'] = 'Takip ettiklerim | ' . title();
     $data['izledikleri'] = $this->user_model->izledikleri($data['i']['user_id']);
     $data['dizi_takip'] = $this->user_model->dizi_takip($data['i']['user_id']);
     $data['uye_takip'] = $this->user_model->uye_takip($data['i']['user_id']);
     $data['takip_edenler'] = $this->user_model->takip_edenler($data['i']['user_id']);
     $data['yorum_say'] = $this->user_model->yorum_say($data['i']['user_id']);
     $data['follow_series'] = $this->user_model->getFollowSeries($data['i']['user_id'], 100);
     $this->display(array('header', 'user/followed', 'sidebar', 'footer'), $data);
 }
コード例 #25
0
function RecommendSite()
{
    global $user, $cookie, $prefix, $db, $user_prefix, $module_name;
    include "header.php";
    title("" . _RECOMMEND . "");
    OpenTable();
    echo "<center><font class=\"content\"><b>" . _RECOMMEND . "</b></font></center><br><br>" . "<form action=\"modules.php?name={$module_name}\" method=\"post\">" . "<input type=\"hidden\" name=\"op\" value=\"SendSite\">";
    if (is_user($user)) {
        $row = $db->sql_fetchrow($db->sql_query("SELECT username, user_email from " . $user_prefix . "_users where username='******'1']}'"));
        $yn = stripslashes($row['username']);
        $ye = stripslashes($row['user_email']);
    }
    echo "<b>" . _FYOURNAME . " </b> <input type=\"text\" name=\"yname\" value=\"{$yn}\"><br><br>\n" . "<b>" . _FYOUREMAIL . " </b> <input type=\"text\" name=\"ymail\" value=\"{$ye}\"><br><br><br>\n" . "<b>" . _FFRIENDNAME . " </b> <input type=\"text\" name=\"fname\"><br><br>\n" . "<b>" . _FFRIENDEMAIL . " </b> <input type=\"text\" name=\"fmail\"><br><br>\n" . "<input type=submit value=" . _SEND . ">\n" . "</form>\n";
    CloseTable();
    include 'footer.php';
}
コード例 #26
0
function js()
{
    header("content-type: application/x-javascript");
    $tpl = new templates();
    $page = CurrentPageName();
    $t = time();
    $tpl = new templates();
    $compile_squid_ask = $tpl->javascript_parse_text("{WARN_RESTART_HOTSPOT}");
    $warn = "if(!confirm('{$compile_squid_ask}')){return;}";
    if (isset($_GET["CheckCaches"])) {
        $warn = $tpl->javascript_parse_text("{check_caches_warning}");
        $warn = "if(!confirm('{$warn}')){return;}";
    }
    $suffix = suffix();
    $title = title();
    echo "\n\tfunction Start{$t}(){\t\n\t\t{$warn}\n\t\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t}\n\tStart{$t}();";
}
コード例 #27
0
ファイル: class_log.php プロジェクト: nicholasmr/obblm
 public static function logViewPage()
 {
     global $coach, $lng;
     if (!is_object($coach) || $coach->ring != Coach::T_RING_GLOBAL_ADMIN) {
         fatal("Sorry. Only site administrators and commissioners are allowed to access this section.");
     }
     title($lng->getTrn('name', 'LogSubSys'));
     echo "<table style='width:100%;'>\n";
     echo "<tr><td><i>Date</i></td><td><i>Message</i></td></tr><tr><td colspan='2'><hr></td></tr>\n";
     $query = "SELECT * FROM log WHERE date > SUBDATE(NOW(), INTERVAL " . LOG_HIST_LENGTH . " MONTH) ORDER BY date DESC";
     $result = mysql_query($query);
     $logs = array();
     while ($l = mysql_fetch_object($result)) {
         echo "<tr><td>" . textdate($l->date) . "</td><td>{$l->msg}</td></tr>\n";
     }
     echo "</table>\n";
 }
コード例 #28
0
ファイル: episode.php プロジェクト: DeadRishing/dizilab
 function index($permalink, $season, $episode)
 {
     $data = $this->_data;
     $data['ep'] = $this->ep->get_episode($permalink, $season, $episode);
     if (empty($data['ep'])) {
         redirect('404', 'refresh');
     }
     $data['title'] = $data['ep']['title'] . ' ' . $data['ep']['season'] . '. Sezon ' . $data['ep']['episode'] . '. Bölüm İzle | ' . title();
     $this->session->set_userdata('epis_id', $data['ep']['id']);
     $data['next_ep'] = $this->episode_model->getNextEpisode($permalink, $season, $episode);
     $data['prev_ep'] = $this->episode_model->getPrevEpisode($permalink, $season, $episode);
     $data['yorumlar'] = $this->episode_model->comments($data['ep']['id']);
     $data['yorum_sayisi'] = $this->episode_model->nofcomm($data['ep']['id']);
     if (!$this->agent->is_mobile()) {
         $this->display(array('header', 'episode', 'footer'), $data);
     } else {
         $this->display(array('mobile/header', 'mobile/episode', 'mobile/footer'), $data);
     }
 }
コード例 #29
0
function js(){
	
	
	
	header("content-type: application/x-javascript");
	$tpl=new templates();
	$page=CurrentPageName();
	$t=time();
	$tpl=new templates();
	
	$suffix=suffix();
	$title=title();
	
	echo "
	function Start$t(){	
		RTMMail('800','$page?popup=yes$suffix','$title');
	}
	Start$t();";
	
	
}
コード例 #30
0
function js()
{
    header("content-type: application/x-javascript");
    $tpl = new templates();
    $page = CurrentPageName();
    $t = time();
    $tpl = new templates();
    $sock = new sockets();
    $compile_squid_ask = $tpl->javascript_parse_text("{compile_squid_ask}");
    $warn = $tpl->javascript_parse_text("{warn_change_mysql_dir}");
    $ArticaProxyStatisticsBackupFolder = $sock->GET_INFO("ArticaProxyStatisticsBackupFolder");
    if ($ArticaProxyStatisticsBackupFolder == null) {
        $ArticaProxyStatisticsBackupFolder = "/home/artica/squid/backup-statistics";
    }
    if ($_GET["backup"] == "yes") {
        $warn = $tpl->javascript_parse_text("{warn_backup_database}");
        $warn = str_replace("%s", $ArticaProxyStatisticsBackupFolder, $warn);
    }
    $suffix = suffix();
    $title = title();
    echo "\n\tfunction Start{$t}(){\t\n\t\tif(!confirm('{$warn}')){return;}\n\t\tRTMMail('800','{$page}?popup=yes{$suffix}','{$title}');\n\t}\n\t\n\t\n\tStart{$t}();";
}