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


PHP headline函数代码示例

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


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

示例1: getContent

 /**
  * Get content
  */
 public function getContent()
 {
     headline(t("settings.1"));
     $table = new Form_Table($this->getForm());
     $table->addSubmit(t("saveit"));
     echo $table->getHtml();
 }
开发者ID:nonconforme,项目名称:nreeda,代码行数:10,代码来源:Settings.class.php

示例2: getContent

    /**
     * Get content
     */
    public function getContent()
    {
        headline(t("archive.title"));
        ?>
        <table width="100%" cellpadding="5" cellspacing="0">
        <tr>
            <td width="50%" align="right"><?php 
        echo t("archive.1");
        ?>
</td>
            <td><input type="text" name="from" value="<?php 
        echo dt("now - 1 week")->getFullDate();
        ?>
" size="10"/></td>
        </tr>
        <tr>
            <td width="50%" align="right"><?php 
        echo t("archive.2");
        ?>
</td>
            <td><input type="text" name="to" value="<?php 
        echo dt("now")->getFullDate();
        ?>
" size="10"/></td>
        </tr>
        <tr>
            <td></td>
            <td><input type="button" class="btn" value="<?php 
        echo t("archive.3");
        ?>
" onclick="submit()"/></td>
        </tr>
        </table>
        <script type="text/javascript">
        function submit(){
            window.location.href = '<?php 
        echo l("RDR_Feeds", array("param" => "archive"));
        ?>
?from='+$("input[name='from']").val()+"&to="+$("input[name='to']").val();
        }
        </script>
        <?php 
    }
开发者ID:nonconforme,项目名称:nreeda,代码行数:46,代码来源:Archive.class.php

示例3: getContent

    /**
     * Get content
     */
    public function getContent()
    {
        if (get("updatedatabase")) {
            RDR_DBUpdate::run();
            redirect(l("RDR_Home"), 302);
        }
        headline(t("dbupdate.1"));
        ?>
        <div class="indent">
            <?php 
        echo s(t("dbupdate.2"), true);
        ?>
<br/><br/>
            <input type="button" class="btn" value="<?php 
        echo t("dbupdate.3");
        ?>
" onclick="window.location.href = '<?php 
        echo url()->getModifiedUri(false);
        ?>
?updatedatabase=1'"/>
        </div>
        <?php 
    }
开发者ID:nonconforme,项目名称:nreeda,代码行数:26,代码来源:DBUpdate.class.php

示例4: misc_comments_report

function misc_comments_report()
{
    global $apx, $db, $set, $user;
    $_REQUEST['id'] = (int) $_REQUEST['id'];
    if (!$_REQUEST['id']) {
        die('missing ContentID!');
    }
    $apx->lang->drop('report', 'comments');
    $apx->tmpl->loaddesign('blank');
    headline($apx->lang->get('HEADLINE_REPORT'), str_replace('&', '&amp;', $_SERVER['REQUEST_URI']));
    titlebar($apx->lang->get('HEADLINE_REPORT'));
    //Absenden
    if ($_POST['send']) {
        //Kommentar auslesen
        list($commenttext) = $db->first("SELECT text FROM " . PRE . "_comments WHERE id='" . $_REQUEST['id'] . "' LIMIT 1");
        if (!$_POST['text']) {
            message('back');
        } elseif (!$commenttext) {
            message('invalid comment-ID!');
        } else {
            //eMail senden
            if ($set['comments']['reportmail']) {
                $input['URL'] = $_POST['url'];
                $input['REASON'] = $_POST['text'];
                $input['TEXT'] = $commenttext;
                sendmail($set['comments']['reportmail'], 'REPORT', $input);
            }
            message($apx->lang->get('MSG_OK'));
        }
    } else {
        $apx->tmpl->assign('POSTTO', HTTPDIR . 'misc.php?action=comments_report');
        $apx->tmpl->assign('URL', compatible_hsc($_REQUEST['url']));
        $apx->tmpl->assign('ID', $_REQUEST['id']);
        $apx->tmpl->parse('report', 'comments');
    }
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:36,代码来源:misc.php

示例5: round

    }
}
if ($check_nowplay) {
    if ($api == 'imdb') {
        require "imdb_nowplaying.inc";
    }
}
if ($check_budget) {
    if ($api == 'imdb') {
        require "imdb_budget.inc";
    }
}
#===============================================[ Summary and HTML footer ]===
$passed = $methods - $failures;
$percent = round(100 * $passed / $methods) . "%";
if (CRON) {
    if ($failures > 0 || !empty($failed)) {
        echo "Some methods failed the automated tests:\n" . "========================================\n\n";
        foreach ($failed as $fail) {
            echo "* {$fail}\n";
        }
        echo "\nOverall results:\n\n" . "Success: {$passed}/{$methods} ({$percent})\n";
    }
} else {
    headline("Test Results:");
    raw("<UL><LI>Methods: {$methods}</LI><LI>Passed: {$passed}</LI><LI>Failures: {$failures}</LI><LI>Success: {$percent}</LI></UL>\n");
    if ($percent == "100%") {
        raw("<b>Congratulations!</b> Looks like the complete API is working perfectly.");
    }
    raw("</BODY></HTML>\n");
}
开发者ID:storiadellamusica,项目名称:sdf,代码行数:31,代码来源:index.php

示例6: FileList

     echo '<input class="Formbutton" name="deleteallfilter" type="submit" value="' . $lang['L_FM_DELETEALLFILTER'] . $databases['db_actual'] . $lang['L_FM_DELETEALLFILTER2'] . '"	onclick="if (!confirm(\'' . $lang['L_FM_ASKDELETE5'] . $databases['db_actual'] . $lang['L_FM_ASKDELETE5_2'] . '\')) return false;">';
     echo FileList() . '</form>';
     echo '<h6>' . $lang['L_FM_FILEUPLOAD'] . '</h6>';
     echo '<div align="left"><form action="' . $href . '" method="POST" enctype="multipart/form-data">';
     echo '<input type="file" name="upfile" class="Formtext" size="60">';
     echo '<input type="submit" name="upload" value="' . $lang['L_FM_FILEUPLOAD'] . '" class="Formbutton">';
     echo '<br>' . $lang['L_MAX_UPLOAD_SIZE'] . ': <strong>' . $config['upload_max_filesize'] . '</strong>';
     echo '<br>' . $lang['L_MAX_UPLOAD_SIZE_INFO'];
     echo '</form></div>';
     echo '<h6>Tools</h6><div align="left">';
     echo '<input type="Button" onclick="document.location=\'filemanagement.php?action=convert\'" class="Formbutton" value="' . $lang['L_CONVERTER'] . '">';
     echo '</div>';
     break;
 case "convert":
     // Konverter
     echo headline($lang['L_CONVERTER']);
     echo '<br><br><form action="filemanagement.php?action=convert" method="post">';
     echo '<table class="bdr"><tr><th colspan="2">' . $lang['L_CONVERT_TITLE'] . '</th></tr>';
     echo '<tr><td>' . $lang['L_CONVERT_FILE'] . '</td><td>' . FilelisteCombo($config['paths']['backup'], $selectfile) . '</td></tr>';
     echo '<tr><td>' . $lang['L_CONVERT_FILENAME'] . ':</td><td><input type="text" name="destfile" size="50" value="' . $destfile . '"></td></tr>';
     echo '<tr><td><input type="checkbox" name="compressed" value="1" ' . ($compressed == 1 ? "checked" : "") . '>&nbsp;' . $lang['L_COMPRESSED'] . '</td>';
     echo '<td><input type="submit" name="startconvert" value=" ' . $lang['L_CONVERT_START'] . ' " class="Formbutton"></td></tr>';
     echo '</table></form><br>';
     if (isset($_POST['startconvert'])) {
         //$destfile.=($compressed==1) ? ".sql.gz" : ".sql";
         echo $lang['L_CONVERTING'] . " {$selectfile} ==&gt; {$destfile}<br>";
         if ($selectfile != "" && file_exists($config['paths']['backup'] . $selectfile) && strlen($destfile) > 2) {
             Converter($selectfile, $destfile, $compressed);
         } else {
             echo $lang['L_CONVERT_WRONG_PARAMETERS'];
         }
开发者ID:robmat,项目名称:samplebator,代码行数:31,代码来源:filemanagement.php

示例7: define

|                  http://www.stylemotion.de                    |
|                                                               |
|---------------------------------------------------------------|
| THIS SOFTWARE IS NOT FREE! MAKE SURE YOU OWN A VALID LICENSE! |
| DO NOT REMOVE ANY COPYRIGHTS WITHOUT PERMISSION!              |
| SOFTWARE BELONGS TO ITS AUTHORS!                              |
\***************************************************************/
define('APXRUN', true);
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_start.php';
//////////////////////////////////////////////////////////// SYSTEMSTART ///
////////////////////////////////////////////////////////////////////////////////////////////////////////
require_once BASEDIR . getmodulepath('videos') . 'functions.php';
$apx->module('videos');
$apx->lang->drop('global');
headline($apx->lang->get('HEADLINE'), mklink('videos.php', 'videos.html'));
titlebar($apx->lang->get('HEADLINE'));
$_REQUEST['catid'] = (int) $_REQUEST['catid'];
$_REQUEST['id'] = (int) $_REQUEST['id'];
////////////////////////////////////////////////////////////////////////////////// DEFEKTER VIDEO
if ($_REQUEST['id'] && $_REQUEST['broken']) {
    $apx->lang->drop('broken');
    if ($_POST['broken']) {
        $res = $db->first("SELECT title FROM " . PRE . "_videos WHERE ( id='" . $_REQUEST['id'] . "' " . section_filter() . " ) LIMIT 1");
        titlebar($apx->lang->get('HEADLINE') . ': ' . $res['title']);
        $link = mklink('videos.php?id=' . $_REQUEST['id'], 'videos,id' . $_REQUEST['id'] . urlformat($res['title']) . '.html');
        $db->query("UPDATE " . PRE . "_videos SET broken='" . time() . "' WHERE ( id='" . $_REQUEST['id'] . "' " . section_filter() . " ) LIMIT 1");
        //eMail-Benachrichtigung
        if ($set['videos']['mailonbroken']) {
            $input = array('URL' => substr(HTTP, 0, -1) . $link);
            sendmail($set['videos']['mailonbroken'], 'BROKEN', $input);
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:videos.php

示例8: phpinfo

    echo '<p align="center"><a href="main.php">&lt;&lt; Home</a></p>';
    phpinfo();
    echo '<p align="center"><a href="main.php">&lt;&lt; Home</a></p>';
    exit;
}
if (isset($_POST['htaccess']) || $action == 'schutz') {
    include './inc/home/protection_create.php';
}
if ($action == 'edithtaccess') {
    include './inc/home/protection_edit.php';
}
if ($action == 'deletehtaccess') {
    include './inc/home/protection_delete.php';
}
// Output headnavi
$tpl = new MSDTemplate();
$tpl->set_filenames(array('show' => 'tpl/home/headnavi.tpl'));
$tpl->assign_vars(array('HEADER' => MSDHeader(), 'HEADLINE' => headline('Home')));
$tpl->pparse('show');
MSD_mysql_connect();
if ($action == 'status') {
    include './inc/home/home.php';
} elseif ($action == 'db') {
    include './inc/home/databases.php';
} elseif ($action == 'sys') {
    include './inc/home/system.php';
} elseif ($action == 'vars') {
    include './inc/home/mysql_variables.php';
}
echo MSDFooter();
ob_end_flush();
开发者ID:robmat,项目名称:samplebator,代码行数:31,代码来源:main.php

示例9: define

|           (c) Copyright 2005-2009, Christian Scheb            |
|                  http://www.stylemotion.de                    |
|                                                               |
|---------------------------------------------------------------|
| THIS SOFTWARE IS NOT FREE! MAKE SURE YOU OWN A VALID LICENSE! |
| DO NOT REMOVE ANY COPYRIGHTS WITHOUT PERMISSION!              |
| SOFTWARE BELONGS TO ITS AUTHORS!                              |
\***************************************************************/
define('APXRUN', true);
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_start.php';
//////////////////////////////////////////////////////////// SYSTEMSTART ///
////////////////////////////////////////////////////////////////////////////////////////////////////////
$apx->module('newsletter');
$apx->lang->drop('form');
headline($apx->lang->get('HEADLINE'), mklink('newsletter.php', 'newsletter.html'));
titlebar($apx->lang->get('HEADLINE'));
$_REQUEST['activate'] = (int) $_REQUEST['activate'];
////////////////////////////////////////////////////////////////////////////////////////////////////////
//Aktivierungscode anfordern
if ($_REQUEST['getcode']) {
    if (!$set['newsletter']['regcode']) {
        exit;
    }
    $apx->lang->drop('getcode');
    if ($_POST['send']) {
        list($aboId) = $db->first("SELECT id FROM " . PRE . "_newsletter_emails WHERE email LIKE '" . addslashes_like($_POST['email']) . "' LIMIT 1");
        if (!$_POST['email']) {
            message('back');
        } elseif (!$aboId) {
            message($apx->lang->get('MSG_NOEMAIL'), 'back');
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:newsletter.php

示例10: define

|           (c) Copyright 2005-2009, Christian Scheb            |
|                  http://www.stylemotion.de                    |
|                                                               |
|---------------------------------------------------------------|
| THIS SOFTWARE IS NOT FREE! MAKE SURE YOU OWN A VALID LICENSE! |
| DO NOT REMOVE ANY COPYRIGHTS WITHOUT PERMISSION!              |
| SOFTWARE BELONGS TO ITS AUTHORS!                              |
\***************************************************************/
define('APXRUN', true);
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_start.php';
//////////////////////////////////////////////////////////// SYSTEMSTART ///
////////////////////////////////////////////////////////////////////////////////////////////////////////
$apx->module('faq');
$apx->lang->drop('faq');
headline($apx->lang->get('HEADLINE'), mklink('faq.php', 'faq.html'));
titlebar($apx->lang->get('HEADLINE'));
$_REQUEST['id'] = (int) $_REQUEST['id'];
////////////////////////////////////////////////////////////////////////////////////////////////////////
require_once BASEDIR . 'lib/class.recursivetree.php';
$tree = new RecursiveTree(PRE . '_faq', 'id');
if ($_REQUEST['id']) {
    $db->query("UPDATE " . PRE . "_faq SET hits=hits+1 WHERE id='" . $_REQUEST['id'] . "' LIMIT 1");
    $node = $tree->getNode($_REQUEST['id'], array('*'));
    if (!$node || !$user->is_team_member() && $node['starttime'] == 0) {
        filenotfound();
    }
    $node['level'] = 0;
    $subData = $tree->getTree(array('*'), $_REQUEST['id'], "starttime!='0'");
    $data = array_merge(array($node), $subData);
} else {
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:faq.php

示例11: die

if (!$_REQUEST['id']) {
    die('missing ID!');
}
//Benutzernamen auslesen
$profileInfo = $db->first("SELECT userid,username,pub_usegb,pub_profileforfriends FROM " . PRE . "_user WHERE userid='" . $_REQUEST['id'] . "' LIMIT 1");
list($userid, $username, $usegb, $friendonly) = $profileInfo;
$apx->tmpl->assign('USERID', $userid);
$apx->tmpl->assign('USERNAME', replace($username));
//Nur für Freunde
if ($friendonly && !$user->is_buddy_of($userid) && $user->info['userid'] != $userid && $user->info['groupid'] != 1) {
    message($apx->lang->get('MSG_FRIENDSONLY'));
    require 'lib/_end.php';
}
//Links zu den Profil-Funktionen
user_assign_profile_links($apx->tmpl, $profileInfo);
headline($apx->lang->get('HEADLINE_COLLECTION'), $apx->tmpl->parsevars['LINK_COLLECTION']);
titlebar($apx->lang->get('HEADLINE_COLLECTION'));
////////////////////////////////////////////////////////////////////////////////////////// PRODUKT-LISTE
//Verwendete Variablen auslesen
$parse = $apx->tmpl->used_vars('collection');
$where = '';
if (!in_array($_REQUEST['type'], $types)) {
    $_REQUEST['type'] = 0;
}
//Typ-Filter
if ($_REQUEST['type']) {
    $where .= " AND type='" . addslashes($_REQUEST['type']) . "' ";
}
if ($_REQUEST['genre']) {
    $where .= " AND genre='" . addslashes($_REQUEST['genre']) . "' ";
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:collection.php

示例12: WriteMem

}
function WriteMem()
{
	document.getElementById("mlimit").value=<?php
	echo round($config['php_ram'] * 1024 * 1024 * 0.9,0);
	?>;
}
</script>
<?php
if (!isset($config['email_maxsize1'])) $config['email_maxsize1']=0;
if (!isset($config['email_maxsize2'])) $config['email_maxsize2']=1;
if (!isset($databases['multisetting'])) $databases['multisetting']="";
$databases['multi']=explode(";",$databases['multisetting']);

//Ausgabe-Teile
$aus['formstart']=headline($lang['L_CONFIG_HEADLINE'] . ': ' . $config['config_file']);
$aus['formstart'].='<form name="frm_config" method="POST" action="config_overview.php"><input type="hidden" name="sel" id="sel" value="db">' . $nl;
$aus['formstart'].='<div id="configleft">';
$aus['formstart'].='<input type="Button" id="command1" onclick="show_pardivs(\'db\');" value="' . $lang['L_DBS'] . '" class="ConfigButton"><br>' . $nl;
$aus['formstart'].='<input type="Button" id="command2" onclick="show_pardivs(\'global1\');" value="' . $lang['L_GENERAL'] . '" class="ConfigButton"><br>' . $nl;
$aus['formstart'].='<input type="Button" id="command3" onclick="show_pardivs(\'global2\');" value="' . $lang['L_CONFIG_INTERFACE'] . '" class="ConfigButton"><br>' . $nl;
$aus['formstart'].='<input type="Button" id="command4" onclick="show_pardivs(\'global3\');" value="' . $lang['L_CONFIG_AUTODELETE'] . '" class="ConfigButton"><br>' . $nl;
$aus['formstart'].='<input type="Button" id="command5" onclick="show_pardivs(\'transfer1\');" value="Email" class="ConfigButton"><br>' . $nl;
$aus['formstart'].='<input type="Button" id="command6" onclick="show_pardivs(\'transfer2\');" value="FTP" class="ConfigButton"><br>' . $nl;
$aus['formstart'].='<input type="Button" id="command7" onclick="show_pardivs(\'cron\');" value="Cronscript" class="ConfigButton"><br>' . $nl;
$aus['formstart'].='<input type="Button" id="command0" onclick="show_pardivs(\'configs\');" value="' . $lang['L_CONFIGFILES'] . '" class="ConfigButton"><br>' . $nl;
//$aus['formstart'].='<input type="Button" id="command8" onclick="show_pardivs(\'all\');" value="' . $lang['L_ALLPARS'] . '" class="ConfigButton"><br>' . $nl;


//$aus['formstart'].='<input class="Formbutton" type="reset" name="reset" value="' . $lang['L_RESET'] . '">';
$aus['formstart'].='<br><input class="Formbutton" type="submit" name="save" value="' . $lang['L_SAVE'] . '"><br><br>' . $nl;
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:config_overview.php

示例13: getContent

    /**
     * Get content
     */
    public function getContent()
    {
        if (get("feed") && is_array(get("feed"))) {
            if (post("save")) {
                $count = 0;
                $feeds = post("feed");
                $message = array();
                if (is_array($feeds)) {
                    foreach ($feeds as $key => $feed) {
                        $href = post("href[{$key}]");
                        $title = post("title[{$key}]");
                        $cat = post("cat[{$key}]");
                        $category = RDR_Category::get($cat);
                        $event = RDR_Import::addFeed($href, $category);
                        if ($event->feed) {
                            RDR_Import::importFeedEntries($event->feed);
                            if ($href != $title) {
                                $event->feed->setCustomName($category, $title);
                                $category->store();
                            }
                        }
                        $message[] = $event->getText();
                    }
                }
                headline(t("browserscript.log"));
                ?>
                <p><?php 
                echo implode("<br/>", $message);
                ?>
</p>
                <p><?php 
                echo t("browserscript.close");
                ?>
</p>
                <?php 
                return;
            }
            headline(sprintf(t("browserscript.addfeeds"), s(get("site"))));
            $feeds = get("feed");
            ?>
            <form name="d" method="post" action="">
            <p>
            <?php 
            $categories = user()->getCategories();
            foreach ($feeds as $id => $feed) {
                $exp = explode(";", $feed, 2);
                ?>
                <input type="hidden" name="href[<?php 
                echo s($id);
                ?>
]" value="<?php 
                echo $exp[0];
                ?>
"/>
                <input type="hidden" name="title[<?php 
                echo s($id);
                ?>
]" value="<?php 
                echo $exp[1];
                ?>
"/>
                <input type="checkbox" name="feed[<?php 
                echo s($id);
                ?>
]" value="<?php 
                echo $feed;
                ?>
"/>
                <select name="cat[<?php 
                echo s($id);
                ?>
]">
                    <option value="<?php 
                echo t("uncategorized");
                ?>
"><?php 
                echo t("uncategorized");
                ?>
</option>
                    <?php 
                foreach ($categories as $category) {
                    if ($category->name == t("uncategorized")) {
                        continue;
                    }
                    ?>
                        <option value="<?php 
                    echo $category->name;
                    ?>
"><?php 
                    echo s($category->name);
                    ?>
</option>
                    <?php 
                }
                ?>
                </select>
                <a href="<?php 
//.........这里部分代码省略.........
开发者ID:nonconforme,项目名称:nreeda,代码行数:101,代码来源:BrowserScript.class.php

示例14: getContent

    /**
     * Get content
     */
    public function getContent()
    {
        headline(t("sidebar.26"));
        ?>
        <div class="indent">
            <?php 
        echo s(t("update.14"), true);
        ?>

            <div class="spacer"></div>
            <?php 
        if (class_exists("ZipArchive")) {
            ?>
                <div class="update-check"><?php 
            echo t("update.19");
            ?>
</div>
            <?php 
        } else {
            ?>
                <span style="color:red"><?php 
            echo t("update.15");
            ?>
</span>
            <?php 
        }
        ?>
            <div id="result" style="padding:10px;"></div>
        </div>
        <script type="text/javascript">
        (function(){
            var req = function(action, params){
                if(!params) params = {};
                params.action = action;
                params.code = '<?php 
        echo self::getValidHash();
        ?>
';
                var url = "<?php 
        echo url()->getModifiedUri(false);
        ?>
";
                if(action == "update") url = params.updateurl;
                $.getJSON(url, params, function(data){
                    if(data.message) $("#result").append('<div class="type '+data.event+'">'+data.message+'</div>');
                    if(data.next && data.next.length){
                        req(data.next, data.params);
                    }else if(action != "disable"){
                        req("disable");
                        $("#result").append($('<div class="type '+data.event+'">').html(<?php 
        echo json_encode(nl2br(t("update.12"), true));
        ?>
));
                    }
                });
            }
            if($(".update-check").length){
                var params = {};
                params.action = "update-check";
                params.code = '<?php 
        echo self::getValidHash();
        ?>
';
                try{
                    $.getJSON("<?php 
        echo url()->getModifiedUri(false);
        ?>
", params, function(data){
                        if(data.error){
                            $(".update-check").html(data.error);
                        }else if(data.version && data.update){
                            $(".update-check").html((<?php 
        echo json_encode(t("update.18"));
        ?>
+'<br/><br/>').replace(/\%s/, data.version)).append(
                                $('<input type="button" class="btn" value="<?php 
        echo t("update.16");
        ?>
"/>').one("click", function(){
                                    if(confirm('<?php 
        echo t("update.17");
        ?>
')){
                                        this.value = '<?php 
        echo t("update.13");
        ?>
';
                                        req("start");
                                    }
                                })
                            );
                        }else if(data.version && !data.update){
                            $(".update-check").html('<?php 
        echo t("update.6");
        ?>
');
                        }
//.........这里部分代码省略.........
开发者ID:nonconforme,项目名称:nreeda,代码行数:101,代码来源:Update.class.php

示例15: time

    $config = $_SESSION['config'];
    $databases = $_SESSION['databases'];
    $restore = $_SESSION['restore'];
    $restore['startzeit'] = time();
    // some Server limit the number of vars that can be saved in a session
    // if this is the case and we lost the language-var we simply include the configuration again
    // this way the include is skipped on servers with unlimited vars
    if (!isset($config['language'])) {
        include './' . $config['files']['parameter'];
    }
}
include './language/' . $config['language'] . '/lang.php';
include './language/' . $config['language'] . '/lang_restore.php';
$config['files']['iconpath'] = './css/' . $config['theme'] . '/icons/';
$aus = array();
$pageheader = MSDheader() . headline($lang['L_RESTORE']);
$aus1 = $page_parameter = '';
$RestoreFertig = $eingetragen = $dauer = $filegroesse = 0;
MSD_mysql_connect($restore['dump_encoding'], true, $restore['actual_table']);
@mysql_select_db($databases['db_actual']) or die($lang['L_DB_SELECT_ERROR'] . $databases['db_actual'] . $lang['L_DB_SELECT_ERROR2']);
// open backup file
$restore['filehandle'] = $restore['compressed'] == 1 ? gzopen($config['paths']['backup'] . $restore['filename'], 'r') : fopen($config['paths']['backup'] . $restore['filename'], 'r');
if ($restore['filehandle']) {
    //nur am Anfang Logeintrag
    if ($restore['offset'] == 0 && $restore['anzahl_tabellen'] == 0) {
        // Statuszeile auslesen
        $restore['part'] = 0;
        $statusline = $restore['compressed'] == 1 ? gzgets($restore['filehandle']) : fgets($restore['filehandle']);
        $sline = ReadStatusline($statusline, true);
        $restore['anzahl_tabellen'] = $sline['tables'];
        $restore['anzahl_eintraege'] = $sline['records'];
开发者ID:robmat,项目名称:samplebator,代码行数:31,代码来源:restore.php


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