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

PHP getCurrentVersion函数代码示例

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

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



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

示例1: __construct

 /**
  * Constructor
  * 
  * @return void
  */
 public function __construct($fcmsError, $fcmsDatabase, $fcmsUser)
 {
     $this->fcmsError = $fcmsError;
     $this->fcmsDatabase = $fcmsDatabase;
     $this->fcmsUser = $fcmsUser;
     $this->fcmsTemplate = array('sitename' => cleanOutput(getSiteName()), 'nav-link' => getAdminNavLinks(), 'pagetitle' => T_('Administration: YouTube'), 'path' => URL_PREFIX, 'displayname' => $fcmsUser->displayName, 'version' => getCurrentVersion(), 'year' => date('Y'));
     $this->control();
 }
开发者ID:sauravpratihar,项目名称:fcms,代码行数:13,代码来源:youtube.php


示例2: displayHeader

    /**
     * displayHeader 
     * 
     * @return void
     */
    function displayHeader()
    {
        echo '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . T_pgettext('Language Code for this translation', 'lang') . '" lang="' . T_pgettext('Language Code for this translation', 'lang') . '">
<head>
<title>' . getSiteName() . ' - ' . T_('powered by') . ' ' . getCurrentVersion() . '</title>
<script type="text/javascript" src="ui/js/jquery.js"></script>
<script type="text/javascript" src="ui/js/fcms.js"></script>
<link rel="stylesheet" type="text/css" href="ui/css/fcms-core.css" />
<script type="text/javascript">
$(document).ready(function() {
    initAttendingEvent();
});
</script>
</head>
<body id="invitation" class="clearfix">
    <img id="logo" src="ui/img/logo.gif" alt="' . getSiteName() . '"/>';
    }
开发者ID:lmcro,项目名称:fcms,代码行数:24,代码来源:invitation.php


示例3: displayHeader

/**
 * displayHeader 
 * 
 * @return void
 */
function displayHeader()
{
    echo '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . T_pgettext('Language Code for this translation', 'lang') . '" lang="' . T_pgettext('Language Code for this translation', 'lang') . '">
<head>
<title>' . getSiteName() . ' - ' . T_('powered by') . ' ' . getCurrentVersion() . '</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="Ryan Haudenschilt" />
<link rel="stylesheet" type="text/css" href="' . URL_PREFIX . 'ui/themes/default/style.css"/>
<link rel="shortcut icon" href="' . URL_PREFIX . 'ui/themes/favicon.ico"/>';
    // TODO
    // Move css to fcms-core
    echo '
<style type="text/css">
html { background: #fff; }
body { width: 600px; margin: 0; padding: 20px; text-align: left; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px; border: none; background: #fff; }
form div, form { display: inline; }
td.n { padding: 2px; text-align: right; width: 75px; }
td.v { text-align: center; width: 30px; }
td.file { padding: 0 5px;  text-align: left; width: 150px; }
tr.alt { background-color: #f4f4f4; }
.delbtn, .viewbtn { padding: 0 }
</style>
<script type="text/javascript">
//<![CDATA[
function insertUpImage(str) {
    var textarea = window.opener.document.getElementById(\'post\');
    if (textarea) {
        if (textarea.value == "message") { textarea.value = str + " "; } else { textarea.value += str + " "; }
        textarea.focus();
    }
    javascript:window.close();
    return true;
}
//]]>
</script>
</head>
<body>';
}
开发者ID:lmcro,项目名称:fcms,代码行数:45,代码来源:upimages.php


示例4: array

     try {
         $data = array();
         $sql = "SELECT * FROM gibbonPerson WHERE status='Full'";
         $result = $connection2->prepare($sql);
         $result->execute($data);
     } catch (PDOException $e) {
     }
     $usersFull = $result->rowCount();
     print "<iframe style='display: none; height: 10px; width: 10px' src='https://gibbonedu.org/services/tracker/tracker.php?absolutePathProtocol=" . urlencode($absolutePathProtocol) . "&absolutePath=" . urlencode($absolutePath) . "&organisationName=" . urlencode($_SESSION[$guid]['organisationName']) . "&type=" . urlencode($_SESSION[$guid]['installType']) . "&version=" . urlencode($version) . "&country=" . $_SESSION[$guid]['country'] . "&usersTotal={$usersTotal}&usersFull={$usersFull}'></iframe>";
 }
 //Proceed!
 print "<div class='trail'>";
 print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > </div><div class='trailEnd'>" . _('System Settings') . "</div>";
 print "</div>";
 //Check for new version of Gibbon
 print getCurrentVersion($guid, $connection2, $version);
 if (isset($_GET["updateReturn"])) {
     $updateReturn = $_GET["updateReturn"];
 } else {
     $updateReturn = "";
 }
 $updateReturnMessage = "";
 $class = "error";
 if (!($updateReturn == "")) {
     if ($updateReturn == "fail0") {
         $updateReturnMessage = _("Your request failed because you do not have access to this action.");
     } else {
         if ($updateReturn == "fail1") {
             $updateReturnMessage = _("Your request failed because your inputs were invalid.");
         } else {
             if ($updateReturn == "fail2") {
开发者ID:dpredster,项目名称:core,代码行数:31,代码来源:systemSettings.php


示例5: displayDashboard

 /**
  * displayDashboard
  * 
  * @return void
  */
 function displayDashboard()
 {
     $this->displayHeader();
     $hasPendingItems = false;
     $update = '';
     $members = '';
     // Upgrade?
     $currentVersion = getCurrentVersion();
     $latestVersion = file('http://www.familycms.com/latest/version.php');
     $latestVersion = $latestVersion[0];
     $versionNumber = substr($latestVersion, 19);
     if (!$this->versionUpToDate($currentVersion, $latestVersion)) {
         $hasPendingItems = true;
         $update = '<h4>' . T_('New Version') . '</h4>';
         $update .= '<p>' . T_('A new version is available for upgrade.');
         $update .= ' <a class="btn" href="upgrade.php">' . T_('Upgrade Now') . '</a></p>';
     }
     // Members waiting activation
     $membersNeedingActivation = getMembersNeedingActivation();
     if (count($membersNeedingActivation) >= 1) {
         $members .= '<h4>' . T_('New Members') . '</h4><ul>';
         foreach ($membersNeedingActivation as $id => $member) {
             $hasPendingItems = true;
             $members .= '<li>' . sprintf(T_('%s is requesting access to the site.'), $member);
             $members .= ' <a class="btn" href="?activate=' . $id . '">' . T_('Activate Now') . '</a></li>';
         }
         $members .= '</ul>';
     }
     if (isset($_SESSION['activate_success'])) {
         echo '
     <div class="alert-message success">
         <a class="close" href="#" onclick="$(this).up(\'div\').hide(); return false;">&times;</a>
         ' . T_('Member activated successfully') . '
     </div>';
         unset($_SESSION['activate_success']);
     }
     if ($hasPendingItems) {
         echo '
     <div id="pending" class="alert-message block-message warning">
         <h2>' . T_('Pending Items') . '</h2>
         <p>' . T_('You have the following pending items that need to be taken care of.') . '</p>
         <div>
             ' . $update . '
             ' . $members . '
         </div>
     </div>';
     }
     $links = '';
     foreach ($this->fcmsTemplate['nav-link'] as $type => $nav) {
         // Remove 'admin_' from in front
         $class = substr($type, 6);
         $links .= '
         <li class="' . $class . '">
             <a href="' . URL_PREFIX . $nav['url'] . '">' . $nav['text'] . '</a>
         </li>';
     }
     echo '
     <ul class="dashboard-links unstyled">' . $links . '
     </ul>';
     $this->displayFooter();
 }
开发者ID:lmcro,项目名称:fcms,代码行数:66,代码来源:index.php


示例6: displayLogin

/**
 * displayLogin 
 * 
 * @return void
 */
function displayLogin()
{
    $sitename = getSiteName();
    if (isset($_GET['url'])) {
        $hidden = '<input type="hidden" name="url" id="url" value="' . cleanOutput($_GET['url']) . '"/>';
    } else {
        $hidden = '';
    }
    // Get available languages
    $lang_dir = "language/";
    $lang_options = '';
    if (is_dir($lang_dir)) {
        if ($dh = opendir($lang_dir)) {
            while (($file = readdir($dh)) !== false) {
                // Skip directories that start with a period
                if ($file[0] === '.') {
                    continue;
                }
                // Skip files (messages.pot)
                if (!is_dir("{$lang_dir}{$file}")) {
                    continue;
                }
                // Skip directories that don't include a messages.mo file
                if (!file_exists($lang_dir . $file . '/LC_MESSAGES/messages.mo')) {
                    continue;
                }
                $arr[$file] = getLangName($file);
            }
            closedir($dh);
            asort($arr);
            foreach ($arr as $key => $val) {
                $lang_options .= '<option value="' . $key . '"';
                if (isset($_SESSION['language'])) {
                    if ($_SESSION['language'] == $key) {
                        $lang_options .= ' selected="selected"';
                    }
                }
                $lang_options .= '>' . $val . '</option>';
            }
        }
    }
    $forgotPassLink = '<a href="lostpw.php">' . T_('Forgot Password?') . '</a>';
    $registerLink = '';
    $facebookLogin = '';
    if (isRegistrationOn()) {
        $registerLink = ' | <a href="register.php">' . T_('Register') . '</a>';
    }
    $fbData = getFacebookConfigData();
    $params = array('scope' => 'user_about_me,user_birthday,user_location,email,publish_stream,offline_access');
    // Print the facebook register button
    if (!empty($fbData['fb_app_id']) && !empty($fbData['fb_secret'])) {
        $facebook = new Facebook(array('appId' => $fbData['fb_app_id'], 'secret' => $fbData['fb_secret']));
        $facebookLogin = '<a href="' . $facebook->getLoginUrl($params) . '" title="' . T_('Login using Facebook') . '"><img src="ui/img/facebook_tiny.png"/></a>';
    }
    echo '
    <div id="login_box">
        <h1 id="login_header">' . T_('Login to') . ' ' . $sitename . '</h1>
        <form action="index.php" method="post">
            <div style="float:right">
                <select style="background-color:#e9f3fb; border:none;" 
                    onchange="window.location.href=\'?lang=\'+this.options[this.selectedIndex].value;">
                    <option>' . T_('Language') . ':</option>
                    ' . $lang_options . '
                </select>
            </div>
            <p><label for="user">' . T_('Username') . ':</label><input type="text" name="user" id="user"/></p>
            <p><label for="pass">' . T_('Password') . ':</label><input type="password" name="pass" id="pass"/></p>
            <p>
                <label class="rem" for="rem">' . T_('Remember Me') . '</label>
                <input class="rem" name="rem" id="rem" type="checkbox" value="1"/>
                ' . $hidden . '
                <input type="submit" name="submit" id="submit" value="' . T_('Login') . '"/>
            </p>
            <div class="clear"></div>
        </form>
        <p style="text-align:center; margin-bottom:20px;">' . $forgotPassLink . $registerLink . '</p>
        <div style="color:silver; font-size:11px; float:left;">' . getCurrentVersion() . '</div>
        <div style="float:right">
            ' . $facebookLogin . '
        </div>
    </div>
</body>
</html>';
}
开发者ID:sauravpratihar,项目名称:fcms,代码行数:89,代码来源:index.php


示例7: displayFooter

 /**
  * displayFooter 
  * 
  * @return void
  */
 function displayFooter()
 {
     $params = array('path' => URL_PREFIX, 'version' => getCurrentVersion(), 'year' => date('Y'));
     echo '
         </div><!--/#maincolumn-->';
     loadTemplate('global', 'footer', $params);
 }
开发者ID:lmcro,项目名称:fcms,代码行数:12,代码来源:privatemsg.php


示例8: session_start

 *
 * @category  FCMS
 * @package   FamilyConnections
 * @author    Ryan Haudenschilt <[email protected]> 
 * @copyright 2010 Haudenschilt LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GPLv2
 * @link      http://www.familycms.com/wiki/
 * @since     2.4
 */
session_start();
define('URL_PREFIX', '');
define('GALLERY_PREFIX', 'gallery/');
require 'fcms.php';
load('datetime', 'socialmedia', 'foursquare');
init();
$templateParams = array('currentUserId' => $fcmsUser->id, 'sitename' => getSiteName(), 'nav-link' => getNavLinks(), 'pagetitle' => T_('Where Is Everyone'), 'pageId' => 'whereiseveryone-page', 'path' => URL_PREFIX, 'displayname' => $fcmsUser->displayName, 'version' => getCurrentVersion(), 'year' => date('Y'));
$options = array('modules' => array('livevalidation'));
displayPageHeader($templateParams, $options);
//-------------------------------------
// Show Latest checkins
//-------------------------------------
$users = getFoursquareUsersData();
$config = getFoursquareConfigData();
if (count($users[0]) <= 0) {
    echo '
            <div class="info-alert">
                <p>' . T_('No users with foursquare data found.') . '</p>
            </div>';
    loadTemplate('global', 'footer', $templateParams);
    return;
}
开发者ID:lmcro,项目名称:fcms,代码行数:31,代码来源:whereiseveryone.php


示例9: session_start

<?php

session_start();
define('URL_PREFIX', '../');
require URL_PREFIX . 'fcms.php';
setLanguage();
isLoggedIn('inc/');
$currentUserId = (int) $_SESSION['fcms_id'];
echo '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . T_pgettext('Language Code for this translation', 'lang') . '" lang="' . T_pgettext('Language Code for this translation', 'lang') . '">
<head>
<title>' . getSiteName() . ' - ' . T_('powered by') . ' ' . getCurrentVersion() . '</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="Ryan Haudenschilt" />
<link rel="stylesheet" type="text/css" href="../ui/themes/default/style.css"/>
<link rel="shortcut icon" href="../ui/favicon.ico"/>';
// TODO
// Move css to fcms-core
echo '
<style type="text/css">
html { background: #fff; }
body { width: 350px; margin: 0; padding: 15px; text-align: left; font: 14px/20px Verdana, Tahoma, Arial, sans-serif; border: none; background: #fff; }
h1 { font: bold 20px/30px Verdana, Tahoma, Arial, sans-serif; }
h2 { font: bold 18px/30px Verdana, Tahoma, Arial, sans-serif; }
h3 { font: bold 16px/30px Verdana, Tahoma, Arial, sans-serif; }
</style>
</head>
<body>
<h1>' . T_('BBCode Help') . '</h1>
<p>' . T_('BBCode is a easy way to format text. Check out the examples below, the first line shows the bbcode and the second line show the output.') . '</p>
开发者ID:lmcro,项目名称:fcms,代码行数:31,代码来源:bbcode.php


示例10: filter_input_array

$page = $page === false || $page === null ? 'main' : $page;
if (!array_key_exists($page, $allowed_pages)) {
    $msg = 'Invalid argument!';
}
$filters = $allowed_pages[$page];
$post_vars = filter_input_array(INPUT_POST, $filters);
$get_vars = filter_input_array(INPUT_GET, $filters);
$input_vars = array_merge((array) $get_vars, (array) $post_vars);
// Set default values
$bot_name = '<b class="red">not selected</b>';
$hide_logo = '';
$curPage = '';
// Begin script execution
$thisPath = dirname(__FILE__);
$template = new Template("{$thisPath}/default.page.htm");
$githubVersion = getCurrentVersion();
$version = $githubVersion == VERSION ? 'Program O version ' . VERSION : 'Program O ' . $githubVersion . ' is now available. <a href="https://github.com/Program-O/Program-O/archive/master.zip">Click here</a> to download it.';
$dbConn = db_open();
if ($get_vars['page'] == 'logout') {
    logout();
}
$logged_in = getLoginStatus();
$curPage = 'logout';
switch ($logged_in) {
    case true:
        $curPage = isset($get_vars['page']) ? $get_vars['page'] : 'main';
        break;
    default:
        $curPage = $get_vars['page'] == 'login' ? login() : 'logout';
}
$name = isset($_SESSION['poadmin']['name']) ? $_SESSION['poadmin']['name'] : '';
开发者ID:ramdesh,项目名称:Program-O,代码行数:31,代码来源:index.php


示例11: displayManualUpgrade

/**
 * displayManualUpgrade 
 * 
 * @return void
 */
function displayManualUpgrade()
{
    displayHeader();
    $statusSiteOff = '';
    $statusDatabase = '';
    if (file_exists(INC . 'siteoff')) {
        global $upgrading;
        include INC . 'siteoff';
        // If the $upgrading timestamp is less than 10 minutes old, then site is off
        if (time() - $upgrading < 600) {
            $statusSiteOff = 'complete';
        }
    }
    $currentVersion = getCurrentVersion();
    $latestVersion = file(LATEST_VERSION_URL);
    $latestVersion = $latestVersion[0];
    $_SESSION['latestVersion'] = $latestVersion;
    if (versionUpToDate($currentVersion, $latestVersion)) {
        $statusDatabase = 'complete';
    }
    echo '
        <h2>' . T_('Manual Upgrade') . '</h2>
        <p><a style="color: #999;" href="upgrade.php">&laquo; ' . T_('Back to Automatic Upgrade') . '</a></p>
        <p>' . sprintf(T_('Please follow the steps below to manually upgrade to %s.'), $latestVersion) . '</p>
        <ul class="manual">
            <li class="' . $statusSiteOff . '">
                <div>' . T_('Step 1') . '</div>
                <p><a href="?site=off">' . T_('Turn Off Site') . '</a></p>
                <p>' . T_('Turning the site off during an upgrade keeps users from trying to login and potentially causing problems.') . '</p>
            </li>
            <li>
                <div>' . T_('Step 2') . '</div>
                <p>' . T_('Manual Upgrade Files') . '</p>
                <p>' . T_('Since your webserver does not support the Automatic Upgrade, you must download the latest Family Connection files and upload them to your site manually.') . '</p>
                <p>' . T_('You must make sure to complete this step before continuing.') . '</p>
            </li>
            <li class="' . $statusDatabase . '">
                <div>' . T_('Step 3') . '</div>
                <p><a href="?upgrade=database">' . T_('Upgrade Database') . '</a></p>
                <p>' . T_('Make any databases changes needed for this upgrade.') . '</p>
            </li>
            <li>
                <div>' . T_('Step 4') . '</div>
                <p><a href="?site=on">' . T_('Finish') . '</a></p>
                <p>' . T_('Turn the site back on and go to the homepage.') . '</p>
            </li>
        </ul>';
    displayFooter();
}
开发者ID:lmcro,项目名称:fcms,代码行数:54,代码来源:upgrade.php


示例12: displayPrintCalendar

    /**
     * displayPrintCalendar 
     * 
     * @return void
     */
    function displayPrintCalendar()
    {
        echo '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . T_pgettext('Language Code for this translation', 'lang') . '" lang="' . T_pgettext('Language Code for this translation', 'lang') . '">
<head>
<title>' . getSiteName() . ' - ' . T_('powered by') . ' ' . getCurrentVersion() . '</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="Ryan Haudenschilt" />
<style type="text/css">
#big-calendar { width: 658px; border-collapse: collapse; }
a { text-decoration: none; }
h3 { text-align: center; }
th { height: 50px; }
td { padding: 0 0 30px 2px; width: 94px; border: 1px solid #000; vertical-align: top; line-height: 10pt; overflow: hidden; }
.weekDays { padding: 3px; background-color: #ccc; text-align: center; font-weight: bold; }
.nonMonthDay { background-color: #eee; }
.add, .prev, .next, .today, .views, .actions { display: none; }
.event { padding: 5px 0 2px 0; }
</style>
</head>
<body onload="window.print();">';
        // Use the supplied date, if available
        if (isset($_GET['year']) && isset($_GET['month']) && isset($_GET['day'])) {
            $year = (int) $_GET['year'];
            $month = (int) $_GET['month'];
            $month = str_pad($month, 2, "0", STR_PAD_LEFT);
            $day = (int) $_GET['day'];
            $day = str_pad($day, 2, "0", STR_PAD_LEFT);
            $this->fcmsCalendar->displayCalendarMonth($month, $year, $day);
        } else {
            $this->fcmsCalendar->displayCalendarMonth();
        }
        echo '
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>';
    }
开发者ID:lmcro,项目名称:fcms,代码行数:44,代码来源:calendar.php


示例13: json_encode

        $errormessage = $dbresult;
    }
}
if (isset($_REQUEST['doinstall'])) {
    $_SESSION['setupvars'] = json_encode(["adminhash" => hash('sha256', $_REQUEST['password'])]);
    $_SESSION['install_screen'] = 4;
}
if (isset($_REQUEST['doupgrade'])) {
    $_SESSION['setupvars'] = json_encode(["adminhash" => hash('sha256', $_REQUEST['password'])]);
    $_SESSION['install_screen'] = 4;
}
switch ($_SESSION['install_screen']) {
    case 1:
        // Check Dependencies
        $deps = checkDependencies();
        $curversion = getCurrentVersion();
        include "views/header.html";
        include "views/requirements.php";
        include "views/footer.html";
        break;
    case 2:
        // Configure database
        include "views/header.html";
        include "views/database.php";
        include "views/footer.html";
        break;
    case 3:
        // Configure system
        include "views/header.html";
        include "views/setup.php";
        include "views/footer.html";
开发者ID:xymantec,项目名称:wallacepos,代码行数:31,代码来源:index.php


示例14: session_start

 * @category  FCMS
 * @package   FamilyConnections
 * @author    Ryan Haudenschilt <[email protected]> 
 * @copyright 2007 Haudenschilt LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GPLv2
 * @link      http://www.familycms.com/wiki/
 */
session_start();
define('URL_PREFIX', '');
require 'fcms.php';
load('datetime');
// Check that the user is logged in
isLoggedIn();
// Globals
$currentUserId = cleanInput($_SESSION['login_id'], 'int');
$TMPL = array('sitename' => getSiteName(), 'nav-link' => getNavLinks(), 'pagetitle' => T_('CHANGE_ME'), 'path' => URL_PREFIX, 'displayname' => getUserDisplayName($currentUserId), 'version' => getCurrentVersion(), 'year' => date('Y'));
control();
exit;
/**
 * control 
 * 
 * The controlling structure for this script.
 * 
 * @return void
 */
function control()
{
    global $book;
    if (isset($_GET['add'])) {
        displayAddForm();
    } elseif (isset($_POST['addsubmit'])) {
开发者ID:lmcro,项目名称:fcms,代码行数:31,代码来源:template.php


示例15: ___

$_MAIN_HELP .= $_WELCOME . "<br>" . $_LOGGED_IN_AS;
$_LANG_CODE = $LOGIN->USER['lang'];
$_LANG_IMG_URL = $tm_imgURL . "/flags/" . $_LANG_CODE . ".png";
if ($LOGIN->USER['lang'] == "en") {
    $_LANG_IMG_URL = $tm_imgURL . "/flags/gb.png";
}
$_LANG_IMG = "<img src=\"" . $_LANG_IMG_URL . "\" border=\"0\" alt=\"" . $_LANG_CODE . "\" title=\"" . $_LANG_CODE . "\">";
$_LANG_SELECTED = ___("Gewählte Sprache:");
$_LANG_SUPPORTED = ___("Verfügbare Sprachen:");
foreach ($LANGUAGES['text'] as $lg) {
    $_LANG_SUPPORTED .= "&nbsp;" . $lg . ",";
}
$_STYLE = ___("Layout / Style") . ": <b>" . $LOGIN->USER['style'] . "</b>";
//get version and messages
if ($C[0]['check_version'] == 1) {
    $t_new_version = getCurrentVersion();
    $t_messages = getMessages();
}
//new Template
$_Tpl_Welcome = new tm_Template();
$_Tpl_Welcome->setTemplatePath(TM_TPLPATH);
//set parse values
$_Tpl_Welcome->setParseValue("_URL", $tm_URL);
$_Tpl_Welcome->setParseValue("_LOGGED_IN_AS", $_LOGGED_IN_AS);
$_Tpl_Welcome->setParseValue("_WELCOME", $_WELCOME);
$_Tpl_Welcome->setParseValue("_HELLO", $_HELLO);
$_Tpl_Welcome->setParseValue("_USER_NAME", $_USER_NAME);
$_Tpl_Welcome->setParseValue("_STYLE", $_STYLE);
$_Tpl_Welcome->setParseValue("_LANG_IMG", $_LANG_IMG);
$_Tpl_Welcome->setParseValue("_LANG_IMG_URL", $_LANG_IMG_URL);
$_Tpl_Welcome->setParseValue("_LANG_CODE", $_LANG_CODE);
开发者ID:aydancoskun,项目名称:octobercms,代码行数:31,代码来源:Welcome.inc.php


示例16: displayFooter

 /**
  * displayFooter 
  * 
  * @return void
  */
 function displayFooter($memberId = 0)
 {
     if ($memberId > 0) {
         echo '
         </div><!-- /maincolumn -->';
     }
     $params = array('path' => URL_PREFIX, 'version' => getCurrentVersion(), 'year' => date('Y'));
     loadTemplate('global', 'footer', $params);
 }
开发者ID:lmcro,项目名称:fcms,代码行数:14,代码来源:profile.php


示例17: curl_setopt

    curl_setopt($curl, CURLOPT_BINARYTRANSFER, 1);
    curl_setopt($curl, CURLOPT_HEADER, false);
    curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true);
    if (file_exists($certs)) {
        curl_setopt($curl, CURLOPT_CAINFO, $certs);
    }
    $rawout = curl_exec($curl);
    if ($rawout === false) {
        echo 'Curl error: ' . curl_error($curl) . "\n";
    }
    curl_close($curl);
    return $rawout;
}
//main
$version = getLatestVersion();
$currentversion = getCurrentVersion($target_folder);
echo "<pre>\n";
//for readable browser output
print_r(array('new_version' => $version->version, 'date' => $version->date, 'current' => $currentversion, 'update' => $version->version != $currentversion ? true : false));
if (!empty($version->version) && $version->version != $currentversion) {
    echo "New version detected - starting Update\n";
    $newpmaname = 'phpMyAdmin-' . $version->version . '-all-languages';
    //multilingual version
    $newpmazipfilename = $newpmaname . '.zip';
    //only ZIP version supported
    $newpmazipurl = 'https://files.phpmyadmin.net/phpMyAdmin/' . $version->version . '/' . $newpmazipfilename;
    //URL since 2015-07
    //download start
    $dl_file = download_pma($newpmazipurl, $ca_certs);
    if ($dl_file === false) {
        echo "Warning: Error downloading PMA\n";
开发者ID:pavelxkrejci,项目名称:UpdateMyPMA,代码行数:31,代码来源:update-my-pma.php


示例18: displayFooter

 /**
  * displayFooter 
  * 
  * @return void
  */
 function displayFooter()
 {
     $params = array('path' => URL_PREFIX, 'version' => getCurrentVersion(), 'year' => date('Y'));
     loadTemplate('global', 'footer', $params);
 }
开发者ID:lmcro,项目名称:fcms,代码行数:10,代码来源:familynews.php


示例19: session_start

 *  
 * @category  FCMS
 * @package   FamilyConnections
 * @author    Ryan Haudenschilt <[email protected]> 
 * @copyright 2008 Haudenschilt LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GPLv2
 * @link      http://www.familycms.com/wiki/
 */
session_start();
require 'fcms.php';
load('phpass');
echo '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . T_pgettext('Language Code for this translation', 'lang') . '" lang="' . T_pgettext('Language Code for this translation', 'lang') . '">
<head>
<title>' . cleanOutput(getSiteName()) . ' - ' . T_('powered by') . ' ' . getCurrentVersion() . '</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="author" content="Ryan Haudenschilt" />
<link rel="shortcut icon" href="ui/favicon.ico"/>
<link rel="stylesheet" type="text/css" href="ui/css/fcms-core.css" />
</head>
<body onload="document.resetform.email.focus()">';
// Resset PW
if (isset($_POST['email'])) {
    $sql = "SELECT `id` \n            FROM `fcms_users` \n            WHERE `email` = ?";
    $row = $fcmsDatabase->getRow($sql, $_POST['email']);
    if ($row === false) {
        $fcmsError->displayError();
        displayForm();
        echo '</body></html>';
        return;
开发者ID:lmcro,项目名称:fcms,代码行数:31,代码来源:lostpw.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP getCustomFields函数代码示例发布时间:2022-05-15
下一篇:
PHP getCurrentUserProfileList函数代码示例发布时间: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