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

PHP headline函数代码示例

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

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



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


示例16: MSD_mysql_connect

MSD_mysql_connect($dump['dump_encoding']);
if ($dump['table_offset'] == -1) {
    ExecuteCommand('b');
}
// only read tableinfos the first time and save it to session to speed up backing up process
if (!isset($_SESSION['dump'])) {
    getDBInfos();
}
$num_tables = count($dump['tables']);
if ($config['optimize_tables_beforedump'] == 1 && $dump['table_offset'] == -1) {
    $out .= sprintf($lang['L_NR_TABLES_OPTIMIZED'], $num_tables) . '<br>';
}
$dump['data'] = '';
$dump['dbindex'] = isset($_POST['dbindex']) ? $_POST['dbindex'] : $flipped[$databases['multi'][0]];
//Ausgaben-Header bauen
$aus_header[] = headline('Backup: ' . ($config['multi_dump'] == 1 ? 'Multidump (' . count($databases['multi']) . ' ' . $lang['L_DBS'] . ')' : $lang['L_DB'] . ': ' . $databases['Name'][$dump['dbindex']] . ($databases['praefix'][$dump['dbindex']] != '' ? ' (' . $lang['L_WITHPRAEFIX'] . ' <span>' . $databases['praefix'][$dump['dbindex']] . '</span>)' : '')));
if (isset($aus_error) && count($aus_error) > 0) {
    $aus_header = array_merge($aus_header, $aus_error);
}
if ($num_tables == 0) {
    //keine Tabellen gefunden
    $aus[] = '<br><br><p class="error">' . $lang['L_ERROR'] . ': ' . sprintf($lang['L_DUMP_NOTABLES'], $databases['Name'][$dump['dbindex']]) . '</p>';
    if (!$config['multi_dump'] == 1) {
        echo $pageheader;
        echo get_page_parameter($dump);
        echo implode("\n", $aus);
        echo '</body></html>';
        exit;
    }
} else {
    if ($dump['table_offset'] == -1) {
开发者ID:thaian2009,项目名称:php,代码行数:31,代码来源:dump.php


示例17: die

<?php

if (!$set['user']['blog']) {
    die('function disabled!');
}
$apx->lang->drop('myblog');
headline($apx->lang->get('HEADLINE_MYBLOG'), mklink('user.php?action=myblog', 'user,myblog.html'));
titlebar($apx->lang->get('HEADLINE_MYBLOG'));
//ERSTELLEN
if ($_REQUEST['do'] == 'add') {
    if ($_POST['send']) {
        if (!$_POST['title'] || !$_POST['text']) {
            message('back');
        } else {
            $_POST['userid'] = $user->info['userid'];
            $_POST['time'] = time();
            $db->dinsert(PRE . '_user_blog', 'userid,title,text,time,allowcoms');
            message($apx->lang->get('MSG_ADD_OK'), mklink('user.php?action=myblog', 'user,myblog.html'));
        }
    } else {
        //Vorschau
        if ($_POST['preview']) {
            $text = $_POST['text'];
            $text = badwords($text);
            $text = replace($text, 1);
            $text = dbsmilies($text);
            $text = dbcodes($text);
            $apx->tmpl->assign('PREVIEW', $text);
        }
        $apx->tmpl->assign('TITLE', compatible_hsc($_POST['title']));
        $apx->tmpl->assign('TEXT', compatible_hsc($_POST['text']));
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:myblog.php


示例18: elseif

    $lcap = "Perl-Log";
} elseif ($r == 2) {
    $lfile = $config['files']['perllogcomplete'];
    $lcap = "Perl-Complete Log";
} elseif ($r == 3) {
    $lfile = $config['paths']['log'] . "error.log";
    $lcap = "PHP Error-Log";
}
if ($config['logcompression'] == 1) {
    $lfile .= ".gz";
}
if (!file_exists($lfile) && $r == 0) {
    DeleteLog();
}
$loginfo = LogFileInfo($config['logcompression']);
echo headline($lcap);
if (!is_writable($config['paths']['log'])) {
    die('<p class="error">ERROR !<br>Logdir is not writable</p>');
}
//lesen
$errorbutton = '';
$perlbutton = '';
$perlbutton2 = '';
if (file_exists($loginfo['errorlog'])) {
    $errorbutton = '<td><input class="Formbutton" type="button" onclick="location.href=\'log.php?r=3\'" value="Error-Log"></td>';
}
if (file_exists($loginfo['perllog'])) {
    $perlbutton = '<td><input type="button" onclick="location.href=\'log.php?r=1\'" class="Formbutton" value="Perl-Log"></td>';
}
if (file_exists($loginfo['perllogcomplete'])) {
    $perlbutton2 = '<td><input class="Formbutton" type="button" onclick="location.href=\'log.php?r=2\'" value="Perl-Complete Log"></td>';
开发者ID:thaian2009,项目名称:php,代码行数:31,代码来源:log.php


示例19: time

                 }
             }
         }
         $a++;
         $dauer = time() - $restore['startzeit'];
     }
     $eingetragen = $a - 1;
 }
 $restore['offset'] = $restore['compressed'] ? gztell($restore['filehandle']) : ftell($restore['filehandle']);
 if ($restore['compressed']) {
     gzclose($restore['filehandle']);
 } else {
     fclose($restore['filehandle']);
 }
 $aus_header[] = PicCache($relativ_path);
 $aus_header[] = headline($lang['restore']);
 $aus_header[] = 'Browser : <img src="images/' . $BrowserIcon . '"> ';
 $restore['aufruf']++;
 if (!$restore['compressed']) {
     $prozent = $filegroesse > 0 ? $restore['offset'] * 100 / $filegroesse : 0;
 } else {
     if ($restore['anzahl_eintraege'] > 0) {
         $prozent = $restore['eintraege_ready'] * 100 / $restore['anzahl_eintraege'];
     } else {
         $prozent = 0;
     }
 }
 if ($prozent > 100) {
     $prozent = 100;
 }
 if ($aus1 != '') {
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:restore.php


示例20: headline

headline('updating using $user->save($data)');
$data = array('id' => $fooBarId, 'login' => 'NEW', 'name' => 'Mr. foo');
$res = $user->save($data);
myPrint($res);
// query: UPDATE user (id,login,name,surname) VALUES (<sequences>,"new","foo","bar")
//
//      12
//
headline('updating using $user->update($data)');
$res = $user->update($data);
myPrint($res);
// query: UPDATE user (id,login,name,surname) VALUES (<sequences>,"new","foo","bar")
//
//      13
//
headline("remove the entry \$user->remove({$fooBarId})");
$res = $user->remove($fooBarId);
myPrint($res);
// query: DELETE FROM "uuser" WHERE "id" = $fooBarId
//
//  helper functions
//
function headline($string = '')
{
    global $headlineCnt;
    if ($string) {
        $headlineCnt++;
        print "<h1>{$headlineCnt} - {$string}</h1>";
    }
}
function myPrint($data)
开发者ID:GeekyNinja,项目名称:LifesavingCAD,代码行数:31,代码来源:example.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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