• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP preload函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP prepare_body函数代码示例发布时间:2022-05-24
下一篇:
PHP pq函数代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap