當前位置: 首頁>>代碼示例>>PHP>>正文


PHP preload函數代碼示例

本文整理匯總了PHP中preload函數的典型用法代碼示例。如果您正苦於以下問題:PHP preload函數的具體用法?PHP preload怎麽用?PHP preload使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了preload函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: main

/** Main program. */
function main()
{
    preload();
    $interpreter = new Interpreter();
    $interpreter->hello();
    $interpreter->bye();
}
開發者ID:eXcomm,項目名稱:libvector3d,代碼行數:8,代碼來源:cli.php

示例2: preload

function preload($folder, &$files = array())
{
    if (!is_dir($folder)) {
        return null;
    }
    $handle = opendir($folder);
    while (($file = readdir($handle)) !== false) {
        if ($file != "." && $file != "..") {
            $fullPath = $folder . DIRECTORY_SEPARATOR . $file;
            if (is_dir($fullPath)) {
                preload($fullPath, $files);
            } else {
                if (substr($file, strlen($file) - 4) == ".php") {
                    $files[] = $fullPath;
                }
            }
        }
    }
    return $files;
}
開發者ID:Rustam44,項目名稱:ASUPortalPHP,代碼行數:20,代碼來源:_bootstrap.php

示例3: preload

<?php

preload("AdminController");
admin_page("Pannello di amministrazione - Gestione gallery");
$gallery = call("gallery", "get");
start_admin_panel("/pannello_centrale", "Modifica gallery");
?>

<form name="form_modifica_gallery" action="/actions/gallery/modify.php" method="POST">

<?php 
include_block("gallery/form_modifica_gallery", $gallery);
?>
    <br />
    <br />
    <a href="/admin/gallery/">Annulla, torna all'elenco delle gallery</a>&nbsp;&nbsp;
    <button type="submit">
        <span>Salva modifiche</span>
    </button>

    <?php 
Form::on_success("/admin/gallery/");
?>
    <?php 
Form::on_failure("/admin/gallery/modifica_gallery.php");
?>
</form>
<?php 
end_admin_panel();
開發者ID:mbcraft,項目名稱:frozen,代碼行數:29,代碼來源:impostazioni_gallery.page.php

示例4: requireLogin

<?php

requireLogin();
useScript("validate-project.php");
preload(32, 32, "no.png");
preload(32, 32, "yes.png");
preload(32, 32, "loading.png");
$TITLE = "Oh noes!";
$CONTENT .= "\n<h1>So. You have a problem. Well whoopdie do. Don't we all</h1>\n<br />\n<br />\n<div id = 'images' ></div>\n<form action = '" . $SITE_PREFIX . "submit-bug.php' method = 'post' >\n\t<table>\n<tr>\n\t<td>What project is giving you crap?</td>\n\t<td><div id = 'project-ok' ><img src = '" . $SITE_PREFIX . "imgs/no.png' alt = '' /></div></td>\n\t<td><input type = 'text' id = 'project' name = 'project' size = '20' /></td>\n</tr>\n<tr>\n\t<td></td>\n\t<td></td>\n\t<td><div id = 'project-descr' >&nbsp;</div></td>\n</tr>\n<tr>\n\t<td>So, I need a poetic name for this issue</td>\n\t<td></td>\n\t<td><input type = 'text' name = 'title' size = '40' /></td>\n</tr>\n<tr>\n\t<td>And a nice description</td>\n\t<td></td>\n\t<td><textarea rows = '20' cols = '50' name = 'descr' ></textarea></td>\n</tr>\n<tr>\n\t<td></td>\n\t<td><img src = '" . $SITE_PREFIX . "imgs/32_space.png' alt = '' /></td>\n\t<td><input type = 'submit' value = 'Look, I made this for you!' /></td>\n</tr>\n\t</table>\n</form>\n";
開發者ID:pedro3005,項目名稱:whube,代碼行數:9,代碼來源:new-bug.php

示例5: preload

<?php

preload("AdminController");
preload("FoltersController");
admin_page("Gestione immagini - indice");
$path = Params::get("path");
preg_match("/\\//", $path, $matches);
$level = count($matches) - 1;
$elenco_cartelle = call("folders", "index", array("__filter_tipo__EQUAL" => "f_immagini", "__filter_path__BEGINS_WITH" => $folder_path, "__filter_level__EQUAL" => $level, "__filter_ordine__ORDER_ASCENDING" => null));
start_admin_panel("/pannello_centrale", "Gestione Immagini");
Flash::write_ok_messages();
Flash::write_warning_messages();
Flash::write_error_messages();
include "include/snippets/contenuti/base/__elenco_cartelle.php.inc";
include "include/snippets/contenuti/base/__elenco_immagini.php.inc";
end_admin_panel();
開發者ID:mbcraft,項目名稱:frozen,代碼行數:16,代碼來源:index.page.php


注:本文中的preload函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。