当前位置: 首页>>代码示例>>PHP>>正文


PHP makefilelist函数代码示例

本文整理汇总了PHP中makefilelist函数的典型用法代码示例。如果您正苦于以下问题:PHP makefilelist函数的具体用法?PHP makefilelist怎么用?PHP makefilelist使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了makefilelist函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display_html

function display_html($formname, $textarea, $html = TRUE, $colors = FALSE, $images = FALSE, $folder = "")
{
    global $locale;
    $res = "";
    if ($html) {
        $res .= "<div class='btn-group m-b-10'>\n";
        $res .= "<button type='button' value='b' class='btn btn-sm btn-default button' style='font-weight:bold;' onclick=\"addText('" . $textarea . "', '&lt;strong&gt;', '&lt;/strong&gt;', '" . $formname . "');\">b</button>\n";
        $res .= "<button type='button' value='i' class='btn btn-sm btn-default button' style='font-style:italic;' onclick=\"addText('" . $textarea . "', '&lt;i&gt;', '&lt;/i&gt;', '" . $formname . "');\">i</button>\n";
        $res .= "<button type='button' value='u' class='btn btn-sm btn-default button' style='text-decoration:underline;' onclick=\"addText('" . $textarea . "', '&lt;u&gt;', '&lt;/u&gt;', '" . $formname . "');\">u</button>\n";
        $res .= "<button type='button' value='link' class='btn btn-sm btn-default button' onclick=\"addText('" . $textarea . "', '&lt;a href=\\'', '\\' target=\\'_blank\\'>Link&lt;/a&gt;', '" . $formname . "');\">link</button>\n";
        $res .= "<button type='button' value='img' class='btn btn-sm btn-default button' onclick=\"addText('" . $textarea . "', '&lt;img src=\\'" . str_replace("../", "", $folder) . "', '\\' style=\\'margin:5px\\' alt=\\'\\' align=\\'left\\' /&gt;', '" . $formname . "');\">img</button>\n";
        $res .= "<button type='button' value='center' class='btn btn-sm btn-default button' onclick=\"addText('" . $textarea . "', '&lt;center&gt;', '&lt;/center&gt;', '" . $formname . "');\">center</button>\n";
        $res .= "<button type='button' value='small' class='btn btn-sm btn-default button' onclick=\"addText('" . $textarea . "', '&lt;span class=\\'small\\'&gt;', '&lt;/span&gt;', '" . $formname . "');\">small</button>\n";
        $res .= "<button type='button' value='small2' class='btn btn-sm  btn-default button' onclick=\"addText('" . $textarea . "', '&lt;span class=\\'small2\\'&gt;', '&lt;/span&gt;', '" . $formname . "');\">small2</button>\n";
        $res .= "<button type='button' value='alt' class='btn btn-sm btn-default button' onclick=\"addText('" . $textarea . "', '&lt;span class=\\'alt\\'&gt;', '&lt;/span&gt;', '" . $formname . "');\">alt</button>\n";
        $res .= "</div>\n";
    }
    if ($colors) {
        $color_array = array('maroon' => $locale['html402'], 'red' => $locale['html403'], 'orange' => $locale['html404'], 'brown' => $locale['html405'], 'yellow' => $locale['html406'], 'green' => $locale['html407'], 'lime' => $locale['html408'], 'olive' => $locale['html409'], 'cyan' => $locale['html410'], 'blue' => $locale['html411'], 'navy' => $locale['html412'], 'purple' => $locale['html413'], 'violet' => $locale['html414'], 'black' => $locale['html415'], 'gray' => $locale['html416'], 'silver' => $locale['html417'], 'white' => $locale['html418']);
        $placeholder = $locale['html400'];
        $res .= form_select('', "setcolor-{$formname}", "setcolor-{$formname}", $color_array, '', array('placeholder' => $placeholder, 'class' => 'pull-left m-r-10', 'allowclear' => 1));
        add_to_jquery("\r\n                function color(item) {\r\n                if(!item.id) {return item.text;}\r\n                var color = item.text;\r\n                return '<table><tr><td><label style=\\'display: inline-block; width: 18px; height:18px; margin:3px; margin-right:5px; padding: 0px 8px; background:'+item.text+'\\'></label>'+item.text+'</td></tr></table>';\r\n                }\r\n                \$('#setcolor-{$formname}').select2({\r\n                formatSelection: color,\r\n                escapeMarkup: function(m) { return m; },\r\n                formatResult: color,\r\n                placeholder:'{$placeholder}',\r\n                allowClear:true,\r\n                });\r\n            \$('#setcolor-{$formname}').on('change', function(e){\r\n            addText('" . $textarea . "', '<span style=\\'color:' + this.options[this.selectedIndex].value + '\\'>', '</span>', '" . $formname . "');this.selectedIndex=0;\r\n            \$(this).select2({\r\n                formatSelection: color,\r\n                escapeMarkup: function(m) { return m; },\r\n                formatResult: color,\r\n                placeholder:'{$placeholder}',\r\n                allowClear:true}).val('');\r\n            });\r\n        ");
    }
    if ($images && $folder) {
        $image_files = makefilelist($folder, ".|..|index.php", TRUE);
        $image_list = makefileopts($image_files);
        $res .= "<select name='insertimage' class='form-control textbox' style='margin-top:5px' onchange=\"insertText('" . $textarea . "', '&lt;img src=\\'" . str_replace("../", "", $folder) . "' + this.options[this.selectedIndex].value + '\\' alt=\\'\\' style=\\'margin:5px\\' align=\\'left\\' /&gt;', '" . $formname . "');this.selectedIndex=0;\">\n";
        $res .= "<option value=''>" . $locale['html401'] . "</option>\n" . $image_list . "</select>\n";
    }
    return $res;
}
开发者ID:WuChEn,项目名称:PHP-Fusion,代码行数:31,代码来源:html_buttons_include.php

示例2: display_html

function display_html($formname, $textarea, $html = true, $colors = false, $images = false, $folder = "")
{
    global $locale, $settings;
    // Pimped: $settings added
    $res = "";
    if ($html) {
        $res .= "<input type='button' value='b' class='button' style='font-weight:bold;width:25px' onclick=\"addText('" . $textarea . "', '&lt;strong&gt;', '&lt;/strong&gt;', '" . $formname . "');\" />\n";
        $res .= "<input type='button' value='i' class='button' style='font-style:italic;width:25px' onclick=\"addText('" . $textarea . "', '&lt;i&gt;', '&lt;/i&gt;', '" . $formname . "');\" />\n";
        $res .= "<input type='button' value='u' class='button' style='text-decoration:underline;width:25px' onclick=\"addText('" . $textarea . "', '&lt;u&gt;', '&lt;/u&gt;', '" . $formname . "');\" />\n";
        $res .= "<input type='button' value='link' class='button' style='width:35px' onclick=\"addText('" . $textarea . "', '&lt;a href=\\'', '\\' target=\\'_blank\\'>Link&lt;/a&gt;', '" . $formname . "');\" />\n";
        if ($settings['enable_lightbox'] == "1") {
            $res .= "<input type='button' value='img' class='button' style='width:35px' onclick=\"addText('" . $textarea . "', '&lt;a class=\\'fancybox\\' href=\\'" . str_replace("../", "", $folder) . "\\'&gt;&lt;img src=\\'" . str_replace("../", "", $folder) . "', '\\' style=\\'margin:5px\\' width=\\'300\\' height=\\'200\\' align=\\'left\\' rel=\\'group\\' /&gt;&lt;/a&gt;', '" . $formname . "');\" />\n";
            // Pimped
        } else {
            $res .= "<input type='button' value='img' class='button' style='width:35px' onclick=\"addText('" . $textarea . "', '&lt;img src=\\'" . str_replace("../", "", $folder) . "', '\\' style=\\'margin:5px\\' align=\\'left\\' /&gt;', '" . $formname . "');\" />\n";
        }
        $res .= "<input type='button' value='center' class='button' style='width:45px' onclick=\"addText('" . $textarea . "', '&lt;center&gt;', '&lt;/center&gt;', '" . $formname . "');\" />\n";
        $res .= "<input type='button' value='small' class='button' style='width:40px' onclick=\"addText('" . $textarea . "', '&lt;span class=\\'small\\'&gt;', '&lt;/span&gt;', '" . $formname . "');\" />\n";
        $res .= "<input type='button' value='small2' class='button' style='width:45px' onclick=\"addText('" . $textarea . "', '&lt;span class=\\'small2\\'&gt;', '&lt;/span&gt;', '" . $formname . "');\" />\n";
        $res .= "<input type='button' value='alt' class='button' style='width:25px' onclick=\"addText('" . $textarea . "', '&lt;span class=\\'alt\\'&gt;', '&lt;/span&gt;', '" . $formname . "');\" />\n";
    }
    if ($html && ($colors || $images)) {
        $res .= "<br />\n";
    }
    if ($colors) {
        $res .= "<select name='setcolor' class='textbox' style='margin-top:5px' onchange=\"addText('" . $textarea . "', '&lt;span style=\\'color:' + this.options[this.selectedIndex].value + '\\'&gt;', '&lt;/span&gt;', '" . $formname . "');this.selectedIndex=0;\">\n";
        $res .= "<option value=''>" . $locale['html400'] . "</option>\n";
        $res .= "<option value='maroon' style='color:maroon'>Maroon</option>\n";
        $res .= "<option value='red' style='color:red'>Red</option>\n";
        $res .= "<option value='orange' style='color:orange'>Orange</option>\n";
        $res .= "<option value='brown' style='color:brown'>Brown</option>\n";
        $res .= "<option value='yellow' style='color:yellow'>Yellow</option>\n";
        $res .= "<option value='green' style='color:green'>Green</option>\n";
        $res .= "<option value='lime' style='color:lime'>Lime</option>\n";
        $res .= "<option value='olive' style='color:olive'>Olive</option>\n";
        $res .= "<option value='cyan' style='color:cyan'>Cyan</option>\n";
        $res .= "<option value='blue' style='color:blue'>Blue</option>\n";
        $res .= "<option value='navy' style='color:navy'>Navy Blue</option>\n";
        $res .= "<option value='purple' style='color:purple'>Purple</option>\n";
        $res .= "<option value='violet' style='color:violet'>Violet</option>\n";
        $res .= "<option value='black' style='color:black'>Black</option>\n";
        $res .= "<option value='gray' style='color:gray'>Gray</option>\n";
        $res .= "<option value='silver' style='color:silver'>Silver</option>\n";
        $res .= "<option value='white' style='color:white'>White</option>\n";
        $res .= "</select>\n";
    }
    if ($images && $folder) {
        $image_files = makefilelist($folder, ".|..|index.php", true);
        $image_list = makefileopts($image_files);
        $res .= "<select name='insertimage' class='textbox' style='margin-top:5px' onchange=\"insertText('" . $textarea . "', '&lt;img src=\\'" . str_replace("../", "", $folder) . "' + this.options[this.selectedIndex].value + '\\' style=\\'margin:5px\\' align=\\'left\\' /&gt;', '" . $formname . "');this.selectedIndex=0;\">\n";
        $res .= "<option value=''>" . $locale['html401'] . "</option>\n" . $image_list . "</select>\n";
    }
    return $res;
}
开发者ID:MichaelFichtner,项目名称:RadioLaFamilia,代码行数:54,代码来源:html_buttons_include.php

示例3: get_rank_images

 /**
  * Get forum rank images
  * @return array
  */
 protected static function get_rank_images()
 {
     $opts = array();
     $image_files = makefilelist(RANKS . "", ".|..|index.php|.svn|.DS_Store", TRUE);
     if (!empty($image_files)) {
         foreach ($image_files as $value) {
             $opts[$value] = $value;
         }
     }
     return $opts;
 }
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:15,代码来源:admin.php

示例4: display_html

function display_html($formname, $textarea, $html = true, $colors = false, $images = false, $folder = "")
{
    global $locale;
    $res = "";
    if ($html) {
        $res .= "<input type='button' value='b' class='button' style='font-weight:bold;' onclick=\"addText('" . $textarea . "', '&lt;strong&gt;', '&lt;/strong&gt;', '" . $formname . "');\" />\n";
        $res .= "<input type='button' value='i' class='button' style='font-style:italic;' onclick=\"addText('" . $textarea . "', '&lt;i&gt;', '&lt;/i&gt;', '" . $formname . "');\" />\n";
        $res .= "<input type='button' value='u' class='button' style='text-decoration:underline;' onclick=\"addText('" . $textarea . "', '&lt;u&gt;', '&lt;/u&gt;', '" . $formname . "');\" />\n";
        $res .= "<input type='button' value='link' class='button' onclick=\"addText('" . $textarea . "', '&lt;a href=\\'', '\\' target=\\'_blank\\'>Link&lt;/a&gt;', '" . $formname . "');\" />\n";
        $res .= "<input type='button' value='img' class='button' onclick=\"addText('" . $textarea . "', '&lt;img src=\\'" . str_replace("../", "", $folder) . "', '\\' style=\\'margin:5px\\' alt=\\'\\' align=\\'left\\' /&gt;', '" . $formname . "');\" />\n";
        $res .= "<input type='button' value='center' class='button' onclick=\"addText('" . $textarea . "', '&lt;center&gt;', '&lt;/center&gt;', '" . $formname . "');\" />\n";
        $res .= "<input type='button' value='small' class='button' onclick=\"addText('" . $textarea . "', '&lt;span class=\\'small\\'&gt;', '&lt;/span&gt;', '" . $formname . "');\" />\n";
        $res .= "<input type='button' value='small2' class='button' onclick=\"addText('" . $textarea . "', '&lt;span class=\\'small2\\'&gt;', '&lt;/span&gt;', '" . $formname . "');\" />\n";
        $res .= "<input type='button' value='alt' class='button' onclick=\"addText('" . $textarea . "', '&lt;span class=\\'alt\\'&gt;', '&lt;/span&gt;', '" . $formname . "');\" />\n";
    }
    if ($html && ($colors || $images)) {
        $res .= "<br />\n";
    }
    if ($colors) {
        $res .= "<select name='setcolor' class='textbox' style='margin-top:5px' onchange=\"addText('" . $textarea . "', '&lt;span style=\\'color:' + this.options[this.selectedIndex].value + '\\'&gt;', '&lt;/span&gt;', '" . $formname . "');this.selectedIndex=0;\">\n";
        $res .= "<option value=''>" . $locale['html400'] . "</option>\n";
        $res .= "<option value='maroon' style='color:maroon'>" . $locale['html402'] . "</option>\n";
        $res .= "<option value='red' style='color:red'>" . $locale['html403'] . "</option>\n";
        $res .= "<option value='orange' style='color:orange'>" . $locale['html404'] . "</option>\n";
        $res .= "<option value='brown' style='color:brown'>" . $locale['html405'] . "</option>\n";
        $res .= "<option value='yellow' style='color:yellow'>" . $locale['html406'] . "</option>\n";
        $res .= "<option value='green' style='color:green'>" . $locale['html407'] . "</option>\n";
        $res .= "<option value='lime' style='color:lime'>" . $locale['html408'] . "</option>\n";
        $res .= "<option value='olive' style='color:olive'>" . $locale['html409'] . "</option>\n";
        $res .= "<option value='cyan' style='color:cyan'>" . $locale['html410'] . "</option>\n";
        $res .= "<option value='blue' style='color:blue'>" . $locale['html411'] . "</option>\n";
        $res .= "<option value='navy' style='color:navy'>" . $locale['html412'] . "</option>\n";
        $res .= "<option value='purple' style='color:purple'>" . $locale['html413'] . "</option>\n";
        $res .= "<option value='violet' style='color:violet'>" . $locale['html414'] . "</option>\n";
        $res .= "<option value='black' style='color:black'>" . $locale['html415'] . "</option>\n";
        $res .= "<option value='gray' style='color:gray'>" . $locale['html416'] . "</option>\n";
        $res .= "<option value='silver' style='color:silver'>" . $locale['html417'] . "</option>\n";
        $res .= "<option value='white' style='color:white'>" . $locale['html418'] . "</option>\n";
        $res .= "</select>\n";
    }
    if ($images && $folder) {
        $image_files = makefilelist($folder, ".|..|index.php", true);
        $image_list = makefileopts($image_files);
        $res .= "<select name='insertimage' class='textbox' style='margin-top:5px' onchange=\"insertText('" . $textarea . "', '&lt;img src=\\'" . str_replace("../", "", $folder) . "' + this.options[this.selectedIndex].value + '\\' alt=\\'\\' style=\\'margin:5px\\' align=\\'left\\' /&gt;', '" . $formname . "');this.selectedIndex=0;\">\n";
        $res .= "<option value=''>" . $locale['html401'] . "</option>\n" . $image_list . "</select>\n";
    }
    return $res;
}
开发者ID:caveman4572,项目名称:PHP-Fusion,代码行数:48,代码来源:html_buttons_include.php

示例5: get_theme_html_str

function get_theme_html_str($selected, $add_empty = FALSE)
{
    $themes = makefilelist("themes/", ".|..|.svn", true, "folders");
    $retval = "<select id='theme' name='theme'>";
    if (empty($selected)) {
        $retval .= "<option value='' selected=selected >-</option>";
    }
    foreach ($themes as $theme) {
        $retval .= "<option value='{$theme}'";
        if ($theme === $selected) {
            $retval .= ' selected=selected ';
        }
        $retval .= ">{$theme}</option>";
    }
    if ($add_empty) {
        $retval .= "<option value='' >-</option>";
    }
    $retval .= "</select>";
    return $retval;
}
开发者ID:jamiebatch452,项目名称:Open-Game-Panel,代码行数:20,代码来源:functions.php

示例6: get_default_search_opts

/**
 * Get the default search options
 * with file exists validation of the PHP-Fusion Search SDK files.
 * @return array
 */
function get_default_search_opts()
{
    static $search_opts = array();
    static $filename_locale = array();
    if (empty($search_opts)) {
        // Place converter to translate the names of the SDK files
        include LOCALE . LOCALESET . "search/converter.php";
        $search_dir = INCLUDES . "search/";
        $dir = LOCALE . LOCALESET . "search/";
        $search_files = makefilelist($search_dir, TRUE, '.|..|.DS_Store|index.php');
        $search_files = array_flip($search_files);
        $search_locale_files = makefilelist($dir, TRUE, '.|..|.DS_Store|index.php');
        if (!empty($search_locale_files)) {
            foreach ($search_locale_files as $file_to_check) {
                $search_api_file = 'search_' . str_replace('.php', '_include.php', $file_to_check);
                $search_btn_file = 'search_' . str_replace('.php', '_include_button.php', $file_to_check);
                if (isset($search_files[$search_api_file]) && isset($search_files[$search_btn_file]) && isset($filename_locale[$file_to_check])) {
                    $search_opts[$file_to_check] = ucwords($filename_locale[$file_to_check]);
                }
            }
        }
    }
    return (array) $search_opts;
}
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:29,代码来源:settings_main.php

示例7: isset

        $wpref->startapp = $_POST['startapp'];
        $wpref->update();
        $time->offset = $_POST['offset'];
        $time->long = $_POST['time_long'];
        $time->update();
        $spref->registration = isset($_POST['registration']) ? 1 : 0;
        $spref->max_users = $_POST['max_users'];
        $spref->template = $_POST['template'];
        $spref->update();
        echo notice(_t("System settings saved."));
    } catch (Exception $e) {
        echo error(_t($e->getMessage()));
    }
}
$templates = makefilelist(PATH_TEMPLATES, ".|..|index.html", true, "folders");
$apps = makefilelist(PATH_APPLICATIONS, ".|..", true, "folders");
?>

<h4><?php 
echo _t("Website Settings");
?>
</h4>
<form method="POST">
    <fieldset>
        <legend>System settings</legend>
        <input type="hidden" name="secure_input" value="<?php 
echo $_SESSION['secure_token_last'];
?>
">
        <table cellspacing="0" width="100%">
            <tr>
开发者ID:thefkboss,项目名称:openTracker,代码行数:31,代码来源:main.php

示例8: page

                    </li>
                    <li>
                        <a href="<?php 
echo page("admin", "members");
?>
">
                            <i class="icon"><img src="images/admin/members.png" width="16px"></i>&nbsp;Search users
                        </a>
                    </li>
                </ul>
            </li>
            <li class="item"><a href="#" class="menu" rel="admin_addons">Addons</a>
                <ul class="dropdown" id="admin_addons">
                    <li class="title"><a>Installed addons</a></li>
                    <?php 
$addons = makefilelist(PATH_APPLICATIONS, ".|..|index.html", true, "folders");
if (count($addons) > 0) {
    foreach ($addons as $addon) {
        $add = new Addon($addon);
        if ($add->isInstalled() && $add->hasAdmin()) {
            ?>
                                <li>
                                    <a href="<?php 
            echo page("admin", "addons", "admin", $addon);
            ?>
">
                                        <i class="icon"><img src="images/admin/addons.png" width="16px"></i>&nbsp;<?php 
            echo ucfirst($addon);
            ?>
                                    </a>
                                </li>
开发者ID:thefkboss,项目名称:openTracker,代码行数:31,代码来源:toolbar.php

示例9: pageAccess

require_once "../maincore.php";
pageAccess('IM');
require_once THEMES . "templates/admin_header.php";
include LOCALE . LOCALESET . "admin/image_uploads.php";
if (isset($_GET['action']) && ($_GET['action'] = "update")) {
    include INCLUDES . "buildlist.php";
}
$folders = array("images" => IMAGES, "imagesa" => IMAGES_A, "imagesn" => IMAGES_N, "imagesnc" => IMAGES_NC, "imagesb" => IMAGES_B, "imagesbc" => IMAGES_BC);
if (isset($_GET['ifolder']) && ctype_alnum($_GET['ifolder']) == 1 && isset($folders[$_GET['ifolder']])) {
    $_GET['ifolder'] = stripinput($_GET['ifolder']);
    $afolder = $folders[$_GET['ifolder']];
} else {
    $_GET['ifolder'] = "images";
    $afolder = IMAGES;
}
$image_list = makefilelist($afolder, ".|..", TRUE, "files", "php|js|ico|DS_Store|SVN");
if ($image_list) {
    $image_count = count($image_list);
} else {
    $image_count = 0;
}
if (isset($_GET['del']) && in_array($_GET['del'], $image_list)) {
    unlink($afolder . stripinput($_GET['del']));
    if ($settings['tinymce_enabled'] == 1) {
        include INCLUDES . "buildlist.php";
    }
    addNotice('warning', $locale['400']);
    redirect(FUSION_SELF . $aidlink . "&amp;ifolder=" . $_GET['ifolder']);
} elseif (isset($_POST['uploadimage'])) {
    $error = "";
    $image_types = array(".gif", ".GIF", ".jpeg", ".JPEG", ".jpg", ".JPG", ".png", ".PNG");
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:images.php

示例10: makefileopts

 echo "<input type='text' name='forum_name' value='" . $forum_name . "' class='textbox' style='width:285px;' /></td>\n";
 echo "</tr>\n<tr>\n";
 echo "<td colspan='2' class='tbl'>" . $locale['521'] . "<br />\n";
 echo "<input type='text' name='forum_description' value='" . $forum_description . "' class='textbox' style='width:285px;' /></td>\n";
 echo "</tr>\n<tr>\n";
 echo "<td class='tbl'>" . $locale['522'] . "<br />\n";
 echo "<select name='forum_cat' class='textbox' style='width:225px;'>\n" . $cat_opts . "</select></td>\n";
 echo "<td width='55' class='tbl'>";
 if (!isset($_GET['action']) || $_GET['action'] != "edit") {
     echo $locale['523'] . "<br />\n<input type='text' name='forum_order' value='" . $forum_order . "' class='textbox' style='width:45px;' />";
     echo "</td>\n</tr>\n";
 } else {
     echo "</td></tr>\n";
 }
 if (isset($_GET['action']) && $_GET['action'] == "edit") {
     $forumIconImages = makefileopts(makefilelist(INFUSIONS . "fusionboard4/images/forum_icons/", ".|..|index.php"), $forum_icon);
     echo "<tr><td colspan='2' class='tbl'>" . $locale['fb100'] . "<br />\n";
     echo "<select name='forum_icon' class='textbox' style='width:285px;' />\n";
     echo "<option value=''>---</option>\n{$forumIconImages}\n";
     echo "</td>\n";
     echo "</tr>\n<tr>\n";
 }
 function renderChildren($parent, $level = 1)
 {
     global $forum_parent;
     $children = "";
     $p_res = dbquery("select * from " . DB_PREFIX . "forums f\n\t\t\t\t\tleft join " . DB_PREFIX . "fb_forums f2 on f2.forum_id=f.forum_id\n\t\t\t\t\twhere f2.forum_parent='{$parent}'");
     while ($p_data = dbarray($p_res)) {
         $children .= "<option value='" . $p_data['forum_id'] . "'" . ($p_data['forum_id'] == $forum_parent ? " SELECTED" : "") . ">";
         for ($i = $level; $i--; $i > 0) {
             $children .= "--";
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:forumadmin.php

示例11: isset

     break;
 case "imagecheck":
     $imgname = isset($_GET['imgname']) ? $_GET['imgname'] : '';
     $imgext = isset($_GET['imgext']) ? $_GET['imgext'] : '';
     if ($action == "view") {
         opentable($locale['imc102']);
         echo "<center><a href='" . FUSION_SELF . $aidlink . "&section=imagecheck&rowstart={$rowstart}'>" . $locale['imc104'] . "</a><br><br>\n";
         echo stripinput(file_get_contents(IMAGES . "avatars/" . $imgname . $imgext)) . "</center>";
     } elseif ($action == "delete") {
         opentable($locale['imc103']);
         unlink(IMAGES . "avatars/" . $imgname . $imgext);
         $result = dbquery("UPDATE " . DB_USERS . " SET user_avatar='' WHERE user_avatar='" . $imgname . $imgext . "'");
         echo "<center>" . $locale['imc108'] . "<br><br>\n<a href='" . FUSION_SELF . $aidlink . "&section=imagecheck&rowstart={$rowstart}'>" . $locale['imc104'] . "</a></center>";
     } else {
         opentable($locale['imc100']);
         $files = makefilelist(IMAGES . "avatars/", ".|..|index.php", false);
         $rows = count($files);
         $counter = 0;
         $columns = 4;
         echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
         for ($i = $rowstart; $i < $rowstart + 12; $i++) {
             if (isset($files[$i])) {
                 $name = IMAGES . "avatars/" . $files[$i];
                 $imgext = strrchr($files[$i], ".");
                 $imgname = substr($files[$i], 0, strrpos($files[$i], "."));
                 if ($counter != 0 && $counter % $columns == 0) {
                     echo "</tr>\n<tr>\n";
                 }
                 echo "<td align='center' class='tbl'>" . $files[$i] . "<br><br>\n";
                 echo "<img src='" . $name . "'><br><br>";
                 //if(!verify_image($name)) echo "<br>".stripinput(file_get_contents($name))."<br>";
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:ucc_admin.php

示例12: dbquery

    $result = !defined('FUSION_NULL') ? dbquery("UPDATE " . DB_SETTINGS . " SET settings_value='{$exclude_upper}' WHERE settings_name='exclude_upper'") : '';
    $exclude_aupper = form_sanitizer($_POST['exclude_aupper'], '', 'exclude_aupper');
    $result = !defined('FUSION_NULL') ? dbquery("UPDATE " . DB_SETTINGS . " SET settings_value='{$exclude_aupper}' WHERE settings_name='exclude_aupper'") : '';
    $exclude_lower = form_sanitizer($_POST['exclude_lower'], '', 'exclude_lower');
    $result = !defined('FUSION_NULL') ? dbquery("UPDATE " . DB_SETTINGS . " SET settings_value='{$exclude_lower}' WHERE settings_name='exclude_lower'") : '';
    $exclude_blower = form_sanitizer($_POST['exclude_blower'], '', 'exclude_blower');
    $result = !defined('FUSION_NULL') ? dbquery("UPDATE " . DB_SETTINGS . " SET settings_value='{$exclude_blower}' WHERE settings_name='exclude_blower'") : '';
    $exclude_right = form_sanitizer($_POST['exclude_right'], '', 'exclude_right');
    $result = !defined('FUSION_NULL') ? dbquery("UPDATE " . DB_SETTINGS . " SET settings_value='{$exclude_right}' WHERE settings_name='exclude_right'") : '';
}
$settings2 = array();
$result = dbquery("SELECT * FROM " . DB_SETTINGS);
while ($data = dbarray($result)) {
    $settings2[$data['settings_name']] = $data['settings_value'];
}
$theme_files = makefilelist(THEMES, ".|..|templates", TRUE, "folders");
opentable($locale['400']);
echo openform('settingsform', 'settingsform', 'post', FUSION_SELF . $aidlink, array('downtime' => 0));
echo "<table class='table table-responsive center'>\n<tbody>\n<tr>\n";
echo "<td width='35%' class='tbl'><label for='sitename'>" . $locale['402'] . "</label> <span class='required'>*</span></td>\n";
echo "<td width='65%' class='tbl'>\n";
echo form_text('', 'sitename', 'sitename', $settings2['sitename'], array('max_length' => 255, 'required' => 1, 'error_text' => $locale['error_value']));
echo "</td>\n</tr>\n<tr>\n";
echo "<td width='35%' class='tbl'><label for='sitebanner'>" . $locale['404'] . "</label></td>\n";
echo "<td width='65%' class='tbl'>\n";
echo form_text('', 'sitebanner', 'sitebanner', $settings2['sitebanner'], array('required' => 1, 'error_text' => $locale['error_value']));
echo "</td>\n</tr>\n<tr>\n";
echo "<td width='35%' class='tbl'><label for='sitemeail'>" . $locale['405'] . "</label> <span class='required'>*</span></td>\n";
echo "<td width='65%' class='tbl'>\n";
echo form_text('', 'siteemail', 'siteemail', $settings2['siteemail'], array('max_length' => 128, 'required' => 1, 'error_text' => $locale['error_value'], 'email' => 1));
echo "</td>\n</tr>\n<tr>\n";
开发者ID:WuChEn,项目名称:PHP-Fusion,代码行数:31,代码来源:settings_main.php

示例13: define

    $access = "0";
    $folder = "";
    $default_color = "";
    $formaction = UBP_BASE . "admin/admin.php?a_page=pet_species";
}
echo "\n<center>\n<form name='create_species' method='post' action='{$formaction}'>\n<table width='100%' border='0'>\n\n<tr>\n\n<td width='50%' align='right'><b>Pet Folder:</b></td>\n\n<td width='50%' align='left'>\n<select name='folder' class='textbox' style='width:200px;'>\n<option value='" . $folder . "'>" . $folder . "</option>";
define("PETLIST", PETS . "regular/");
$pet_folder_list = makefilelist(PETLIST, ".|..", true, "folders");
foreach ($pet_folder_list as $mia_fey) {
    echo "<option value='{$mia_fey}'>{$mia_fey}</option>";
}
echo "</select></td>\n\n</tr><tr>\n\n<td width='50%' align='right'>\n<b>Default Color:</b>\n</td>\n\n<td width='50%' align='left'>";
if (isset($name)) {
    echo "<select name='default_color' class='textbox' style='width:200px;'>\n\t\t<option value='" . $default_color . "'>" . $default_color . "</option>";
    $pet_colors = PETS . "painted/" . $folder . "/";
    $pet_colors_folder_list = makefilelist($pet_colors, ".|..", true, "folders");
    foreach ($pet_colors_folder_list as $maya_fey) {
        echo "<option value='{$maya_fey}'>{$maya_fey}</option>";
    }
    echo "</select>";
} else {
    echo "<b>This option is only available while editing an already created species.</b>";
}
echo "</td>\n\n</tr><tr>\n\n<td width='50%' align='right'><b>Pet Species Name:</b></td>\n\n<td width='50%' align='left'>\n<input type='text' name='name' value='{$name}' class='textbox' style='width:120px;' />\n</td>\n\n</tr><tr>\n\n<td width='50%' align='right'><b>\nPet Info:\n</b></td>\n\n<td width='50%' align='left'>\n<textarea rows='2' cols='20' name='info'>{$info}</textarea>\n</td>\n\n</tr><tr>\n\n<td colspan='2' align='center'>\n<input type='submit' name='save_cat' value='Save Pet' class='button'>\n</td></tr>\n</table>\n</form>\n\n</center>";
tblbreak();
echo "<table align='center' width='55%' cellspacing='0'>\n<td class='tbl2' width='30%'><b>" . $locale['VARC351'] . "</b></td>\n<td class='tbl2' align='right' width='10%'><b>" . $locale['VARC352'] . "</b></td>\n</tr>\n";
if (!isset($sortby) || !preg_match("/^[0-9A-Z]\$/", $sortby)) {
    $sortby = "all";
}
$orderby = $sortby == "all" ? "" : " WHERE name LIKE '{$sortby}%'";
$result = dbquery("SELECT * FROM " . DB_UBERPETS_PET_SPECIES . "" . $orderby . "");
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:pet_species.php

示例14: opentable

if (dbrows($result)) {
    opentable($locale['ssfp_005']);
    echo "<form name='updform' method='post' action='" . FUSION_SELF . $aidlink . "&amp;feed_name=" . $feed_name . "&amp;updfrq=" . $updfrq . "'>\n";
    echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border center'>\n";
    echo "\t<tr>\n";
    echo "\t\t<td class='tbl1'>" . $locale['ssfp_006'] . "<br /><br />" . $updfrq . $locale['ssfp_007'] . "</td>\n";
    echo "\t</tr>\n";
    while ($data = dbarray($result)) {
        $rows = dbcount("(feed_id)", DB_SS_FEEDS, "");
        if (file_exists(INFUSIONS . "ss_feeds_panel/locale/" . LOCALESET . "feeds/" . $data['feed_name'] . ".php")) {
            include INFUSIONS . "ss_feeds_panel/locale/" . LOCALESET . "feeds/" . $data['feed_name'] . ".php";
        } else {
            include INFUSIONS . "ss_feeds_panel/locale/English/feeds/" . $data['feed_name'] . ".php";
        }
        include INFUSIONS . "ss_feeds_panel/feeds/" . $data['feed_name'] . "_var.php";
        $feed_icon = makefilelist(INFUSIONS . "ss_feeds_panel/images/icon/", "index.php", true, "files");
        foreach ($feed_icon as $icon) {
            $aicon = "<a href='" . INFUSIONS . "ss_feeds_panel/rss/" . $data['feed_name'] . ".rss' target='_blank'><img src='" . INFUSIONS . "ss_feeds_panel/images/icon/" . $icon . "' title='" . $feed_title . "' alt='" . $feed_title . "' style='border: 0pt none;' /></a>\n";
            $acheck = "&nbsp;<input type='radio' name='feed_icon' value='" . $icon . "' class='textbox' " . ($icon == $data['feed_icon'] ? " checked='checked'" : "") . " onclick='submit();' />" . $locale['ssfp_010'];
            $code = "";
            $code .= "[code]";
            $code .= "rss_icon(\"" . $data['feed_name'] . "\", " . $updfrq . ", \"" . $icon . "\");\n";
            $code .= "[/code]";
            echo "\t<tr>\n";
            echo "\t\t<td class='tbl2' style='white-space:nowrap'>" . $aicon . $acheck . "</td>\n";
            echo "\t</tr>\n";
            echo "\t<tr>\n";
            echo "\t\t<td class='tbl1' style='white-space:nowrap'>" . nl2br(parseubb(stripinput($code))) . "</td>\n";
            echo "\t</tr>\n";
        }
    }
开发者ID:MichaelFichtner,项目名称:RadioLaFamilia,代码行数:31,代码来源:ss_feeds_code.php

示例15: redirect

        exit;
    }
    redirect(FUSION_SELF . $aidlink);
}
require_once THEMES . "templates/admin_header.php";
include LOCALE . LOCALESET . "admin/db-backup.php";
if (isset($_GET['status']) && !isset($message)) {
    if ($_GET['status'] == "pw") {
        $message = $locale['global_182'];
    }
    if ($message) {
        echo "<div id='close-message'><div class='admin-message'>" . $message . "</div></div>\n";
    }
}
if (!isset($_POST['btn_do_restore']) && (!isset($_GET['action']) || $_GET['action'] != "restore")) {
    $backup_files = makefilelist(ADMIN . "db_backups/", ".|..|index.php", true);
    if (is_array($backup_files) && count($backup_files) > 0) {
        for ($i = 0; $i < count($backup_files); $i++) {
            @unlink(ADMIN . "db_backups/" . $backup_files[$i]);
        }
    }
}
if (isset($_POST['btn_cancel'])) {
    @unlink(ADMIN . "db_backups/" . $_POST['file']);
    redirect(FUSION_SELF . $aidlink);
}
if (isset($_POST['btn_do_restore'])) {
    if (!check_admin_pass(isset($_POST['user_admin_password']) ? stripinput($_POST['user_admin_password']) : "")) {
        redirect(FUSION_SELF . $aidlink . "&status=pw");
    }
    $result = gzfile(ADMIN . "db_backups/" . $_POST['file']);
开发者ID:necrophcodr,项目名称:Muks,代码行数:31,代码来源:db_backup.php


注:本文中的makefilelist函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。