예제 #1
0
function phpquran_err($msg, $title = '', $exit = true, $redirect = false, $rs = '2')
{
    global $text, $tpl, $SQL, $lang;
    // assign {text} in err template
    $text = $msg;
    //header
    Saaheader($title);
    //show tpl
    echo $tpl->display('err');
    //footer
    Saafooter();
    //redirect
    if ($redirect) {
        echo '<meta http-equiv="refresh" content="' . $rs . ';url=' . $redirect . '" />';
    }
    if ($exit) {
        $SQL->close();
        exit;
    }
}
예제 #2
0
    //some variables must be destroyed here
    unset($online_names, $timeout, $timeout2);
    /**
     * Wanna increase your onlines counter ..you can from next line 
     * but you must know this is illegal ... 
     */
    $allnumbers = $usersnum + $visitornum;
    //check & update most ever users and vistors was online
    if (empty($config['most_user_online_ever']) || trim($config['most_user_online_ever']) == '') {
        $most_online = $allnumbers;
        $on_muoe = time();
    } else {
        list($most_online, $on_muoe) = @explode($config['most_user_online_ever']);
    }
    if ((int) $most_online < $allnumbers || (empty($config['most_user_online_ever']) || trim($config['most_user_online_ever']) == '')) {
        update_config('most_user_online_ever', $allnumbers . ':' . time());
    }
    $on_muoe = date('d-m-Y h:i a', $on_muoe);
    ($hook = kleeja_run_hook('if_online_index_page')) ? eval($hook) : null;
    //run hook
}
#allow_online
($hook = kleeja_run_hook('end_index_page')) ? eval($hook) : null;
//run hook
//header
Saaheader();
//index
echo $tpl->display("index_body");
//footer
Saafooter();
//<-- EOF
예제 #3
0
        exit;
        break;
        //
        // Default , if you are a developer , you can embed your page here with this hook
        // by useing $_GET[go] and your codes.
        //
    //
    // Default , if you are a developer , you can embed your page here with this hook
    // by useing $_GET[go] and your codes.
    //
    default:
        $no_request = true;
        ($hook = kleeja_run_hook('default_go_page')) ? eval($hook) : null;
        //run hook
        if ($no_request) {
            kleeja_err($lang['ERROR_NAVIGATATION']);
        }
        break;
}
#end switch
($hook = kleeja_run_hook('end_go_page')) ? eval($hook) : null;
//run hook
//no template ?
$stylee = empty($stylee) ? 'info' : $stylee;
$titlee = empty($titlee) ? '' : $titlee;
//header
Saaheader($titlee);
//tpl
echo $tpl->display($stylee);
//footer
Saafooter();
/**
* print error message 
* parameters : msg : text that will show as error mressage
					title : <title>title of page</title>
					exit : stop script after showing msg 
*/
function kleeja_err($msg, $title = '', $exit = true, $redirect = false, $rs = 2, $extra_code_header)
{
    global $text, $tpl, $SQL;
    ($hook = kleeja_run_hook('kleeja_err_func')) ? eval($hook) : null;
    //run hook
    // assign {text} in err template
    $text = $msg;
    //header
    Saaheader($title, false, $extra_code_header);
    //show tpl
    echo $tpl->display('err');
    //footer
    Saafooter();
    //redirect
    if ($redirect) {
        redirect($redirect, false, $exit, $rs);
    } else {
        if ($exit) {
            $SQL->close();
            exit;
        }
    }
}
예제 #5
0
<?php

##################################################
#						phpquran
#
# Filename : index.php
# purpose :  home page  .
# copyright 2007-2009
# license http://opensource.org/licenses/gpl-license.php GNU Public License
##################################################
// security ..
define('IN_INDEX', true);
//include imprtant file ..
include 'includes/common.php';
$query = $SQL->build(array('SELECT' => '*', 'FROM' => "{$dbprefix}reciter"));
while ($result = $SQL->fetch_array($query)) {
    $arr[] = array('reciter_name' => $result["reciter_name"], 'reciter_id' => $result["reciter_id"], 'reciter_en' => $result["reciter_en"]);
}
$reciter_f_name = !empty($config['fn']) ? $config['fn'] : '';
$reciter_f_id = !empty($config['fr']) ? $config['fr'] . '.xml' : 'xml.php';
$SQL->freeresult($result);
//for show ..
//header
Saaheader($lang['HOME']);
//index
echo $tpl->display("index_body");
//footer
Saafooter();
예제 #6
0
파일: ucp.php 프로젝트: Saleh7/Kleeja
    // Wrapper for captcha file
    //
    case 'captcha':
        include PATH . 'includes/captcha.php';
        exit;
        break;
        //
        //add your own code here
        //
    //
    //add your own code here
    //
    default:
        ($hook = kleeja_run_hook('default_usrcp_page')) ? eval($hook) : null;
        //run hook
        kleeja_err($lang['ERROR_NAVIGATATION']);
        break;
}
#end switch
($hook = kleeja_run_hook('end_usrcp_page')) ? eval($hook) : null;
//run hook
//
//show style ...
//
$titlee = empty($titlee) ? $lang['USERS_SYSTEM'] : $titlee;
$stylee = empty($stylee) ? 'info' : $stylee;
//header
Saaheader($titlee, false, $extra);
echo $tpl->display($stylee);
//footer
Saafooter();