/*################### Web Directory #################################3*/
define('DIR_MODULE', 'modules');
define('DIR_CONTENT','content');
define('DIR_LIB', 'includes');
define('DIR_THEME', 'themes');
define('DIR_ADMIN', 'admin');
?>
Notice: Use of undefined constant DIR_LIB - assumed 'DIR_LIB' in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 12
Warning: include(DIR_LIB/session.php): failed to open stream: No such file or directory in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 12
Warning: include(): Failed opening 'DIR_LIB/session.php' for inclusion (include_path='.:/usr/share/php') in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 12
Notice: Use of undefined constant DIR_LIB - assumed 'DIR_LIB' in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 13
Warning: include(DIR_LIB/security.php): failed to open stream: No such file or directory in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 13
Warning: include(): Failed opening 'DIR_LIB/security.php' for inclusion (include_path='.:/usr/share/php') in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 13
/*require_once "includes/config.php";
require_once "includes/mysql.php";*/
class ITLine{
function frame($title,$content){
// $frame.='
';
$frame ='';
$frame.='';
// $frame.=' |
';
return ($frame);
}
function box($content,$width=''){
$view='';
$view .='
| | |
';
$view .=' | ';
$view .=$content;
$view .=' | |
';
$view .=' | | |
';
return $view;
}
function boxutama($content,$width=''){
$view='';
$view .=$content;
return $view;
}
function frameDot($title,$content){
$frame ='';
return $frame;
}
function themenews($id, $title, $ket, $content,$detail=0) {
global $theme;
$frame='';
$frame.='
'.$title.'
';
if(!empty($ket))$frame.='
'.$ket.'
';
$frame.='
'.$content.'
';
$frame.='
';
if($detail!=1){
$frame.='';
}
return $frame;
}
function themeartikel($id, $title, $ket, $content, $author='') {
global $theme;
$thefile = addslashes(file_get_contents("themes/".$theme."/theme-artikel.html"));
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
echo $r_file;
}
function getNameUser($id){
global $connection;
$sql = "SELECT nickname FROM #__member WHERE id = $id ";
$run_sql = $connection->sql_query($sql);
$result = $connection->sql_fetchrow($run_sql);
$name = $result['nickname'];
return ($name);
}
function viewPage($id,$class){
global $connection;
$sql = "SELECT * FROM #__page WHERE id = $id ";
$run_sql = $connection->sql_query($sql);
$result = $connection->sql_fetchrow($run_sql);
$title = $result['title'];
$content = $result['content'];
switch($class){
case 'dot' : return $this->frameDot($title,$content);
case 'panel' : return $this->frame($title,$content);
}
}//end function
function viewLatestContent($limit){
global $connection;
$view = '';
$sql = "SELECT p.*, m.id AS mid, m.param FROM #__page AS p, #__menu AS m WHERE m.type = 'page' AND m.param = p.id ORDER BY id DESC LIMIT $limit";
$run_sql = $connection->sql_query($sql);
while($result = $connection->sql_fetchrow($run_sql)){
$id = $result['id'];
$title = $result['title'];
$content = $result['content'];
$mid = $result['mid'];
$view.=' '.$title.'
';
}
return $view;
//return $this->frame($title,$content);
}
function selectifContent($id,$mid){
global $connection;
$sql = "SELECT * FROM #__page WHERE id = $id";
$run_sql = $connection->sql_query($sql);
$result = $connection->sql_fetchrow($run_sql);
$id = $result['id'];
$title = limitTXT($result['title'],12);
$content=''.$result['title'].'
';
$content .= limitTXT($result['content'],250);
$content.='
Selengkapnya »
';
return $this->frame(' ',$content);
}
function getPageMenuId($pid){
global $connection;
$sql = "SELECT `id` FROM `#__menu` WHERE `param` = '$pid' AND `type`='page'";
$run_sql = $connection->sql_query($sql);
$result = $connection->sql_fetchrow($run_sql);
$id = $result['id'];
return $id;
}
}// end class
$tview = new ITLine();
?>
Notice: Use of undefined constant DIR_LIB - assumed 'DIR_LIB' in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 25
Warning: include(DIR_LIB/offline_stat.php): failed to open stream: No such file or directory in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 25
Warning: include(): Failed opening 'DIR_LIB/offline_stat.php' for inclusion (include_path='.:/usr/share/php') in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 25
Notice: Use of undefined constant DIR_LIB - assumed 'DIR_LIB' in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 26
Warning: include(DIR_LIB/paging.php): failed to open stream: No such file or directory in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 26
Warning: include(): Failed opening 'DIR_LIB/paging.php' for inclusion (include_path='.:/usr/share/php') in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 26
Notice: Undefined variable: offline_status in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 27
Notice: Use of undefined constant DIR_THEME - assumed 'DIR_THEME' in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 61
Warning: include(DIR_THEME//header.php): failed to open stream: No such file or directory in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 61
Warning: include(): Failed opening 'DIR_THEME//header.php' for inclusion (include_path='.:/usr/share/php') in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 61
Notice: Use of undefined constant DIR_CONTENT - assumed 'DIR_CONTENT' in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 64
Warning: include(DIR_CONTENT/mainpage.php): failed to open stream: No such file or directory in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 64
Warning: include(): Failed opening 'DIR_CONTENT/mainpage.php' for inclusion (include_path='.:/usr/share/php') in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 64
Notice: Use of undefined constant DIR_THEME - assumed 'DIR_THEME' in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 78
Warning: include(DIR_THEME//footer.php): failed to open stream: No such file or directory in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 78
Warning: include(): Failed opening 'DIR_THEME//footer.php' for inclusion (include_path='.:/usr/share/php') in /home/upik/web/upik.cirebonkab.go.id/public_html/index.php on line 78