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


PHP Update::execute方法代码示例

本文整理汇总了PHP中Update::execute方法的典型用法代码示例。如果您正苦于以下问题:PHP Update::execute方法的具体用法?PHP Update::execute怎么用?PHP Update::execute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Update的用法示例。


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

示例1: getTranslation

     $PAGE->body = $PAGE->body . "<br/>";
     $PAGE->body = $PAGE->body . "<b>";
     $PAGE->body = $PAGE->body . getTranslation("Update Notes for version", $settings);
     $PAGE->body = $PAGE->body . " ";
     $PAGE->body = $PAGE->body . $next_version;
     $PAGE->body = $PAGE->body . "</b>";
     $update_notes = $UPDATE->notes();
     if (strlen($update_notes) > 0) {
         $PAGE->body = $PAGE->body . "<ul>";
         $PAGE->body = $PAGE->body . "<br/>";
         $PAGE->body = $PAGE->body . $update_notes;
         $PAGE->body = $PAGE->body . "</ul>";
     }
 } elseif (isset($_GET['page']) && intval($_GET['page']) == 2 && isset($_POST['btnSubmit'])) {
     // CALL THE UPDATE COMMANDS
     $UPDATE->execute();
     $old_version = $current_version;
     // UPDATE THE DATABASE VERSION NUMBER
     $sys_setting = new sys_setting();
     $sys_setting->get_from_hashrange("system", "version");
     $sys_setting->update(array("val" => $next_version));
     $database_version = $sys_setting->val;
     $current_version = $next_version;
     $title_text = getTranslation("Update from version", $settings);
     $title_text = $title_text . " ";
     $title_text = $title_text . $old_version;
     $title_text = $title_text . " ";
     $title_text = $title_text . getTranslation("to version", $settings);
     $title_text = $title_text . " ";
     $title_text = $title_text . $current_version;
     $title_text = $title_text . " ";
开发者ID:hisapi,项目名称:his,代码行数:31,代码来源:update.php

示例2: Update

<?php

// Include the update class.
require_once 'Update.class.php';
// Init the Update class.
$update = new Update('http://localhost/update/server/thisistheupdatefile.zip', 'http://localhost/update/server/version.ini');
// Check if a new version is available.
if ($update->checkVersion()) {
    // A new update is available.
    // Download and install.
    $update->execute();
} else {
    // The current system is up to date (no new version).
    echo '<h3>System is up to date!</h3>';
}
开发者ID:stwns,项目名称:AutoUpdater,代码行数:15,代码来源:example.php

示例3: Update

<?php

/*
 * Tecflare Corporation
 * Copyright Tecflare Corporation
 * Provided by the Tecflare Corporation System
 * * Code has been scanned by styleci.io
 */
require_once 'functions/update.class.php';
// Init the Update class.
$update = new Update('http://tecflare.cu.cc/cdn-packages/latest.zip', 'http://tecflare.cu.cc/cdn-packages/version.ini');
// Check if a new version is available.
if ($update->checkVersion()) {
    $update->execute('../');
}
开发者ID:poKe-Websites,项目名称:poKe-CMS,代码行数:15,代码来源:update.php


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