示例#1
0
文件: ajax.php 项目: philum/cms
     $t = suj_of_id($id);
     $s = prma('content') + 20;
     $nl = 'nlpop';
     $ret = art_read_b($id, '', 3, '');
     break;
 case "popartmod":
     req('mod,spe,art,pop,tri,boot');
     deductions_from_read($id, '');
     $ret = build_art_mod('');
     $t = nms(39);
     $s = 440;
     break;
 case "divcontent":
     req('pop,spe,art,tri,mod,boot');
     $_GET[$id] = $va;
     $ret = build_content();
     break;
 case "getcontent":
     req('pop,spe,art,tri,mod');
     $_GET[eradic_acc($id)] = $va;
     if (is_numeric($opt)) {
         $_GET['dig'] = $opt;
     } elseif ($opt) {
         $_GET[$opt] = $optb;
     }
     $_SESSION['load'] = define_load();
     $tt = $id . ':' . $va;
     $s = prma('content');
     $ret = output_load($_SESSION['load'], slct_media());
     break;
 case "modj":
示例#2
0
<?php

$start = date("U") + microtime();
include "config.php";
include "template/" . $template_name . "/content.php";
build_content();
$end = date("U") + microtime();
echo "<br />\n" . round(($end - $start) * 1000, 1) . " ms build time.\n";
示例#3
0
文件: boot.php 项目: philum/cms
function build_blocks()
{
    $r = explode(' ', $_SESSION['prma']['blocks']);
    foreach ($r as $k => $v) {
        if ($v == 'content') {
            $ret[$v] = divd($v, build_content()) . "\n";
        } else {
            $ret[$v] = divd($v, build_modules($v, $cache)) . "\n";
        }
    }
    $ret = str_replace('</p>', "</p>\n", $ret);
    return $ret;
}
示例#4
0
        $content = build_content(array('Choose a Title', 'Every site needs a good title. Pick something that will be searchable.', 'What is the title of your website?', 'site_title', ''));
        break;
    case 3:
        $content = build_content(array('Choose a Database', 'FusionLeaf is designed to work very well with MySQL. An IP address or hostname is required to connect to the database.', 'On which server is your MySQL database location? (Default is 127.0.0.1)', 'db_host', '127.0.0.1'));
        break;
    case 4:
        $content = build_content(array('Database Port', 'MySQL usually listens on a port. A port is essentially the room number if your database server was a giant hotel.', 'What is the MySQL port? (Default is 3306)', 'db_port', 3306));
        break;
    case 5:
        $content = build_content(array('Database Admin', 'In order to connect and use MySQL, an account with administrative privileges is required. ', 'What is the MySQL username?', 'db_root_username', 'root'));
        break;
    case 6:
        $content = build_content(array('Database Admin Password', 'In order to connect and use MySQL, an account with administrative privileges is required. ', 'What is the MySQL password?', 'db_root_password', ''));
        break;
    default:
        $content = build_content(array('Finished!', 'Your website is ready for use!'));
        $finish = '<button style="float: left;" tabindex="2" id="nothing" class="btn btn-success" type="submit" name="finish" title="Click once to finish">Finish</button>';
        $next = '';
}
echo <<<OUTPUT
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>FusionLeaf Setup</title>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<link rel="stylesheet" type="text/css" media="screen" href="/style/style.css" />
<link href="/inc/bootstrap/css/bootstrap.min.css" rel="stylesheet" class="simpleswitch">

    <style>
示例#5
0
文件: boot.php 项目: philum/cms
function build_blocks()
{
    $r = explode(' ', $_SESSION['prma']['blocks']);
    $p = $_GET['plug'];
    foreach ($r as $k => $v) {
        if ($v == 'content') {
            if ($p) {
                $d = plugin($p, get('p'), get('o'));
            } else {
                $d = build_content();
            }
            $ret[$v] = divd($v, $d) . "\n";
        } elseif ($v == 'clear') {
            $ret[$v] = divc('clear', '');
        } else {
            $ret[$v] = divd($v, build_modules($v, $cache)) . "\n";
        }
    }
    $ret = str_replace('</p>', "</p>\n", $ret);
    return $ret;
}
示例#6
0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================== */
include '../check_logged.php';
include 'connect.php';
if ($_POST['folder'] == '' || $_POST['folder'] == '/') {
    $_POST['folder'] = $site['path'];
}
if ($_POST['folder'] == '') {
    $_POST['folder'] = '/';
}
$content = build_content($ftp, $_POST['folder']);
function build_content($ftp, $dir)
{
    $content_array = array();
    $dirs_array = array();
    $files_array = array();
    $files = ftp_nlist($ftp, $dir);
    foreach ($files as $filename) {
        $filename = explode('/', $filename);
        $filename = $filename[count($filename) - 1];
        if ($filename == '.' || $filename == '..') {
            continue;
        }
        $fullname = $filename;
        if ($dir != '') {
            $fullname = $dir . '/' . $fullname;