예제 #1
0
파일: do.php 프로젝트: omtim/kleeja
         }
     }
 } else {
     #not exists img or thumb
     if (ig('img') || ig('thmb') || ig('thmbf') || ig('imgf')) {
         ($hook = $plugin->run_hook('not_exists_qr_down_img')) ? eval($hook) : null;
         //run hook
         $f = 'images';
         $n = 'not_exists.jpg';
         //set image conditon on
         $is_image = true;
     } else {
         #not exists file
         ($hook = $plugin->run_hook('not_exists_qr_down_file')) ? eval($hook) : null;
         //run hook
         kleeja_err($lang['FILE_NO_FOUNDED']);
     }
 }
 #prevent bug, where you can download file, not image using imagef- url, bug:1134
 if ((ig('img') || ig('thmb') || ig('thmbf') || ig('imgf')) && !$is_image) {
     $f = 'images';
     $n = 'not_exists.jpg';
     $is_image = true;
 }
 #downalod porcess
 $path_file = ig('thmb') || ig('thmbf') ? "./{$f}/thumbs/{$n}" : "./{$f}/{$n}";
 $chunksize = 1024 * 120;
 //1 kelobyte * 120 = 120kb that will send to user every loop
 $resuming_on = true;
 ($hook = $plugin->run_hook('down_go_page')) ? eval($hook) : null;
 //run hook
예제 #2
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();
예제 #3
0
/**
* print inforamtion message 
* parameters : msg : text that will show as inforamtion
					title : <title>title of page</title>
					exit : stop script after showing msg 
*/
function kleeja_info($msg, $title = '', $exit = true, $redirect = false, $rs = 5, $extra_code_header = '')
{
    global $text, $tpl, $SQL;
    ($hook = kleeja_run_hook('kleeja_info_func')) ? eval($hook) : null;
    //run hook
    return kleeja_err($msg, $title, $exit, $redirect, $rs, $extra_code_header, 'info');
}