Exemplo n.º 1
0
$email = menu_param('show_email', menuParam);
$job = menu_param('show_job', menuParam);
$gender = menu_param('show_gender', menuParam);
$phone = menu_param('show_phone', menuParam);
$address = menu_param('show_address', menuParam);
$links = menu_param('show_links', menuParam);
$photo = menu_param('show_photo', menuParam);
$job = menu_param('show_job', menuParam);
$perpage = menu_param('per_page', menuParam);
$param11 = menu_param('office_email', menuParam);
$param12 = menu_param('office_phone1', menuParam);
$param13 = menu_param('office_phone2', menuParam);
$param14 = menu_param('office_fax', menuParam);
$param15 = menu_param('office_address', menuParam);
$param16 = menu_param('office_text', menuParam);
$param17 = menu_param('office_map', menuParam);
$view = link_param('view', $menuLink);
$id = link_param('id', $menuLink);
if (strpos($param11, "\n")) {
    $param11 = $param12 = $param13 = $param14 = $param15 = $param16 = $param17 = '';
}
$visible = $page = '';
$visible2 = 'invisible';
if ($view == 'person') {
    $view = 'selected';
    $visible = 'invisible';
    $visible2 = '';
} else {
    if (empty($view) or $view == 'contact') {
        $page = 'selected';
    }
Exemplo n.º 2
0
* @package		Fiyo CMS
* @copyright	Copyright (C) 2014 Fiyo CMS.
* @license		GNU/GPL, see LICENSE.
**/
defined('_FINDEX_') or die('Access Denied');
$name = menu_param('show_name', menuParam);
$group = menu_param('show_group', menuParam);
$email = menu_param('show_email', menuParam);
$job = menu_param('show_job', menuParam);
$gender = menu_param('show_gender', menuParam);
$phone = menu_param('show_phone', menuParam);
$address = menu_param('show_address', menuParam);
$links = menu_param('show_links', menuParam);
$photo = menu_param('show_photo', menuParam);
$job = menu_param('show_job', menuParam);
$perpage = menu_param('per_page', menuParam);
$view = link_param('view', $menuLink);
$id = link_param('id', $menuLink);
if ($view == 'person') {
    $view = 'selected';
}
if (!$perpage) {
    $perpage = 10;
}
?>
<script type="text/javascript">
$(document).ready(function(){
	var loading = $("#loading");
	loading.fadeOut();
	
	var link = $("#link").val()
Exemplo n.º 3
0
<?php

/**
* @version		1.0.0
* @package		Fi Download
* @copyright	Copyright (C) 2012 Fiyo Developers.
* @license		GNU/GPL, see LICENSE.txt
* @description	
**/
defined('_FINDEX_') or die('Access Denied');
$show_panel = menu_param('show_panel', $id);
$read_more = menu_param('read_more', $id);
$per_page = menu_param('per_page', $id);
$view = link_param('view', $menuLink);
$id = link_param('id', $menuLink);
if ($view == 'category') {
    $view2 = 'selected';
}
if ($view == 'item') {
    $view3 = 'selected';
}
if ($view == 'catlist') {
    $view4 = 'selected';
}
if ($view == 'archive') {
    $view5 = 'selected';
}
if ($show_panel == 1) {
    $panel1 = "checked";
}
if ($show_panel == 0) {
Exemplo n.º 4
0
<?php

/**
* @version		2.0
* @package		Fiyo CMS
* @copyright	Copyright (C) 2014 Fiyo CMS.
* @license		GNU/GPL, see LICENSE.txt
* @description	
**/
defined('_FINDEX_') or die('Access Denied!');
$id = app_param('id');
$view = app_param('view');
$format = menu_param('format');
if ($format != 'blog' and $format != 'list') {
    $format = 'default';
}
switch ($view) {
    case 'featured':
        require "apps/app_article/view/featured.php";
        break;
    case 'archives':
        require "apps/app_article/view/default.php";
        break;
    case 'category':
        require "apps/app_article/view/category.php";
        break;
    case 'item':
        require "apps/app_article/view/item.php";
        break;
    default:
        if (app_param('tag') != null) {
Exemplo n.º 5
0
/**
* @version		2.0
* @package		Fiyo CMS
* @copyright	Copyright (C) 2014 Fiyo CMS.
* @license		GNU/GPL, see LICENSE.
**/
defined('_FINDEX_') or die('Access Denied');
$panel_format = menu_param('panel_format', menuParam);
$show_panel = menu_param('show_panel', menuParam);
$show_rss = menu_param('show_rss', menuParam);
$read_more = menu_param('read_more', menuParam);
$per_page = menu_param('per_page', menuParam);
$format = menu_param('format', menuParam);
$intro = menu_param('intro', menuParam);
$imgW = menu_param('imgW', menuParam);
$imgH = menu_param('imgH', menuParam);
if (!is_numeric($imgW) or empty($imgW)) {
    $imgW = 120;
}
if (!is_numeric($imgH) or empty($imgH)) {
    $imgH = 100;
}
$aId = link_param('id', $menuLink);
$view = link_param('view', $menuLink);
if ($view == 'archives') {
    $view1 = 'selected';
} else {
    if ($view == 'category') {
        $view2 = 'selected';
    } else {
        if ($view == 'item') {
Exemplo n.º 6
0
 function category($type, $id = null, $format = null)
 {
     $link = null;
     /* Set global parameter */
     $show_panel = menu_param('show_panel', Page_ID);
     $show_rss = menu_param('show_rss', Page_ID);
     $read_more = menu_param('read_more', Page_ID);
     $per_page = menu_param('per_page', Page_ID);
     $intro = menu_param('intro', Page_ID);
     if (empty($intro)) {
         $intro = $per_page;
     }
     /* Set Access_Level */
     $accessLevel = Level_Access;
     if ($type == 'archives') {
         $where = "status=1";
     } else {
         if ($type == 'category') {
             $catName = categoryInfo('name', $id);
             $catDesc = categoryInfo('description', $id);
             $catLink = categoryLink($id);
             $where = "status=1 AND category = {$id}";
         } else {
             if ($type == 'featured') {
                 $where = "status=1 AND featured = 1";
             } else {
                 if ($type == 'tag') {
                     if (empty($per_page)) {
                         $per_page = 10;
                     }
                     $tag = app_param('tag');
                     $tag = str_replace("-", " ", $tag);
                     $where = "status=1 AND tags LIKE '%" . $tag . "%'";
                 }
             }
         }
     }
     if (_FEED_ == 'rss') {
         $per_page = 20;
         $pages = url_param('page');
         if ($pages != null) {
             $link = str_replace("?page={$pages}", "", getUrl());
             redirect("{$link}?feed=rss");
         }
     }
     loadPaging();
     $paging = new paging();
     $result = $paging->pagerQuery(FDBPrefix . 'article', "*,\n\t\tDATE_FORMAT(date,'%d %M %Y') as date,\n\t\tDATE_FORMAT(date,'%Y-%m-%d %H:%i:%s') as order_date,\n\t\tDATE_FORMAT(date,'%a, %m %d %Y %H:%i:%s') as time,\n\t\tDATE_FORMAT(date,'%d') as f,\n\t\tDATE_FORMAT(date,'%D') as d,\n\t\tDATE_FORMAT(date,'%b') as b,\n\t\tDATE_FORMAT(date,'%a') as a,\n\t\tDATE_FORMAT(date,'%W') as D,\n\t\tDATE_FORMAT(date,'%m') as n,\n\t\tDATE_FORMAT(date,'%M') as m,\n\t\tDATE_FORMAT(date,'%y') as y,\n\t\tDATE_FORMAT(date,'%Y') as Y,\n\t\tDATE_FORMAT(date,'%h') as h,\n\t\tDATE_FORMAT(date,'%H') as H,\n\t\tDATE_FORMAT(date,'%p') as p,\n\t\tDATE_FORMAT(date,'%i') as i,\n\t\tDATE_FORMAT(date,'%s') as s", "{$where} {$accessLevel}", 'order_date DESC', $per_page);
     $no = 0;
     $perrows = mysql_affected_rows();
     while ($qr = mysql_fetch_array($result)) {
         /* Category Details */
         $catLinks = categoryLink($qr['category']);
         $category = categoryInfo('name', $qr['category']);
         $catHref = "<a href='{$catLinks}'>{$category}</a>";
         /* Author */
         if (empty($qr['author'])) {
             $author = userInfo('name', 1);
         } else {
             $author = $qr['author'];
         }
         /* Article Links */
         $link = "?app=article&amp;view=item&amp;id={$qr['id']}";
         $vlink = str_replace("&amp;", "&", $link);
         $vlink = make_permalink($vlink);
         /* Article Title */
         $title = "<a href='{$vlink}'>{$qr['title']}</a>";
         $link = make_permalink($link);
         /* Article Tags */
         $tags = tagToLink($qr['tags']);
         /* Article Content */
         $article = $qr['article'];
         if (checkLocalhost()) {
             $article = str_replace(FLocal . "media/", "media/", $article);
             $article = str_replace("/media/", FUrl . "media/", $article);
         }
         $comment = null;
         /* Article Comments */
         $comm = FQuery('comment', "link='{$link}'AND status=1");
         if (FQuery('apps', "folder='app_comment'")) {
             $comment = "<a class='send-comment' href='{$link}#comment'>";
             if ($comm > 1) {
                 $comment .= "<span>{$comm}</span> " . Comments;
             }
             if ($comm == 1) {
                 $comment .= "<span>{$comm}</span> " . Comment;
             }
             if ($comm < 1) {
                 $comment .= Send_Comment;
             }
             $comment .= "</a>";
         }
         $scomment = mod_param('show_comment', articleInfo('parameter', $qr['id']));
         if (!$scomment) {
             $comment = '';
         }
         /* Read More */
         if (empty($read_more)) {
             $read_more = Readmore;
         }
         $readmore = "<a href='{$link}' class='readmore'>{$read_more}</a> {$comment}";
         /* Intro limit (read more) */
         $content = $article;
         /* Blog Style */
         if ($format == 'blog' or $type == 'tag' or $format == 'list') {
             $image = articleImage($content);
             $image = str_replace("/media", "/media/.thumbs", $image);
             $imgH = menu_param('imgH', Page_ID);
             $imgW = menu_param('imgW', Page_ID);
             $this->image[$no] = $image;
             $this->imgH = $imgH;
             $this->imgW = $imgW;
             $content = preg_replace("/<img[^>]+\\>/i", "", $content);
         }
         $content = articleIntro($content);
         $panel = menu_param('panel_format', Page_ID);
         $fpanel = "#" . menu_param('panel_format', Page_ID);
         $dpanel = str_replace('%rel', "", $fpanel);
         if (empty($panel) or !strpos($dpanel, '%')) {
             if (siteConfig('lang') == 'id') {
                 $panel = "<b>%A</b> &#183; %f %m %Y &#183; %c";
             } else {
                 $panel = "%m, %f %Y &#183; <b>%A</b> &#183; %c";
             }
         }
         $panel = str_replace('%A', $author, $panel);
         $panel = str_replace('%c', "{$catHref}", $panel);
         $panel = str_replace('%h', $qr['hits'], $panel);
         $timeRel = dateRelative($qr['H'], $qr['i'], $qr['s'], $qr['n'], $qr['f'], $qr['Y']);
         if ($timeRel and strpos($fpanel, '%rel')) {
             $panel = str_replace(', ', "", $panel);
             $panel = str_replace('%d', "", $panel);
             $panel = str_replace('%f', "{$timeRel}", $panel);
             $panel = str_replace('%m', "", $panel);
             $panel = str_replace('%n', "", $panel);
             $panel = str_replace('%y', "", $panel);
             $panel = str_replace('%Y', "", $panel);
             $panel = str_replace('%H', "", $panel);
             $panel = str_replace('%h', "", $panel);
             $panel = str_replace('%i', "", $panel);
             $panel = str_replace('%s', "", $panel);
             $panel = str_replace('%p', "", $panel);
             if (strlen($panel) < 3) {
                 $panel = $timeRel;
             }
         } else {
             if (siteConfig('lang') == 'id') {
                 $panel = str_replace('%f', $qr['f'], $panel);
             } else {
                 $panel = str_replace('%f', $qr['d'], $panel);
             }
             $panel = str_replace("%rel", $panel, $panel);
             $panel = str_replace('%d', $qr['d'], $panel);
             $panel = str_replace('%a', $qr['a'], $panel);
             $panel = str_replace('%b', $qr['b'], $panel);
             $panel = str_replace('%m', $qr['m'], $panel);
             $panel = str_replace('%n', $qr['n'], $panel);
             $panel = str_replace('%y', $qr['y'], $panel);
             $panel = str_replace('%Y', $qr['Y'], $panel);
             $panel = str_replace('%H', $qr['H'], $panel);
             $panel = str_replace('%h', $qr['h'], $panel);
             $panel = str_replace('%i', $qr['i'], $panel);
             $panel = str_replace('%s', $qr['s'], $panel);
             $panel = str_replace('%p', $qr['p'], $panel);
         }
         $panel = str_replace('*', "", $panel);
         /* RSS Feed */
         $this->perrows = $perrows;
         $this->intro = $intro;
         $this->show_rss = $show_rss;
         $this->show_panel = $show_panel;
         $this->panel[$no] = $panel;
         $this->category[$no] = $category;
         $this->catlink[$no] = $catLinks;
         $this->readmore[$no] = $readmore;
         $this->comment[$no] = $comment;
         $this->author[$no] = $author;
         $this->title[$no] = $title;
         $this->link[$no] = $link;
         $this->tags[$no] = $tags;
         $this->ftime[$no] = $qr['time'];
         $this->hits[$no] = $qr['hits'];
         $this->desc[$no] = clearXMLString("{$content}");
         $this->ftitle[$no] = clearXMLString($qr['title']);
         $this->content[$no] = $content;
         if (defined('SEF_URL')) {
             $link = link_paging('?');
             if (strpos(getUrl(), '&') > 0) {
                 $link = link_paging('&');
             }
         } else {
             if (checkhomepage()) {
                 $link = "?";
             } else {
                 if (!url_param('id')) {
                     $tag = app_param('tag');
                     $link = "?app=article&tag={$tag}";
                     $link = make_permalink($link, Page_ID);
                     $link = $link . "&amp;";
                 } else {
                     $link = "?app=article&view=category&id={$categoryId}";
                     $link = make_permalink($link, Page_ID);
                     $link = $link . "&amp;";
                 }
             }
         }
         $no++;
     }
     // pageLink
     $this->pglink = $paging->createPaging($link);
     // rssLink
     if ($type == 'tag') {
         $tag = str_replace(" ", "-", $tag);
         $rssLink = "?app=article&tag={$tag}&feed=rss";
     } else {
         if ($type == 'category') {
             $rssLink = "?app=article&view=category&id={$id}&feed=rss";
         } else {
             $rssLink = "?app=article&view=archives&feed=rss";
         }
     }
     if (_FEED_ == 'rss') {
         $rssLink = make_permalink($rssLink);
         $this->rssTitle = @clearXMLString(SiteTitle);
         $categoryLink = @clearXMLString($rssLink);
         $categoryLink = str_replace(".xml", "", $categoryLink);
         $this->rssLink = $categoryLink;
         $this->rssDesc = @$categoryDesc;
     } else {
         $this->rssLink = make_permalink($rssLink);
     }
 }
Exemplo n.º 7
0
<?php

/**
* @name			User
* @version		1.5.0
* @package		Fiyo CMS
* @copyright	Copyright (C) 2012 Fiyo CMS.
* @license		GNU/GPL, see LICENSE.txt
* @description	
**/
defined('_FINDEX_') or die('Access Denied');
$view = menu_param('view', menuParam);
if ($view == 'login') {
    $view1 = 'selected';
}
if ($view == 'register') {
    $view2 = 'selected';
}
if ($view == 'profile') {
    $view3 = 'selected';
}
?>
<script type="text/javascript">
$(document).ready(function(){
	var loading = $("#loading");
	loading.fadeOut();	
	var link = $("#link").val()
	if(link=="#") $("#link").val("?app=user&view=login");
	$("#type").change(function(){
		var tm = $("#type").val();	
		if(tm=='login')