本文整理汇总了PHP中gallery::version_string方法的典型用法代码示例。如果您正苦于以下问题:PHP gallery::version_string方法的具体用法?PHP gallery::version_string怎么用?PHP gallery::version_string使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gallery
的用法示例。
在下文中一共展示了gallery::version_string方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
public function index()
{
$input = Input::instance();
$reply = GalleryRemoteReply::factory(gallery_remote::GR_STAT_SUCCESS);
if ($this->_check_protocol($input, $reply)) {
$reply->set('debug_gallery_version', gallery::version_string());
$reply->set('debug_user', identity::active_user()->name);
$reply->set('debug_user_type', 'Gallery_User');
$reply->set('debug_user_already_logged_in', identity::active_user()->id != identity::guest()->id ? '1' : '');
$reply->set('server_version', '2.15');
$cmd = trim($input->post('cmd'));
if ($cmd == 'login') {
$this->_login($input, $reply);
} else {
if (self::isloggedin()) {
switch ($cmd) {
case 'no-op':
$reply->set('status_text', 'Noop command successful.');
$reply->send();
break;
case 'fetch-albums':
case 'fetch-albums-prune':
$this->_fetch_albums_prune($input, $reply);
break;
case 'new-album':
$this->_new_album($input, $reply);
break;
case 'album-properties':
$this->_album_properties($input, $reply);
break;
case 'add-item':
$this->_add_item($input, $reply);
break;
case 'move-album':
$this->_move_album($input, $reply);
break;
case 'increment-view-count':
$this->_increment_view_count($input, $reply);
break;
case 'image-properties':
$this->_image_properties($input, $reply);
break;
case 'fetch-album-images':
$this->_fetch_album_images($input, $reply);
break;
default:
$reply->send(gallery_remote::UNKNOWN_CMD);
}
} else {
$reply->send(gallery_remote::LOGIN_MISSING);
}
}
}
}
示例2: credits
static function credits()
{
$version_string = SafeString::of_safe_html('<bdo dir="ltr">Gallery ' . gallery::version_string() . '</bdo>');
return "<li class=\"g-first\">" . t(module::get_var("gallery", "credits"), array("url" => "http://gallery.menalto.com", "gallery_version" => $version_string)) . "</li>";
}
示例3: defined
<?php
defined("SYSPATH") or die("No direct script access.");
?>
<ul>
<li>
<?php
echo t("Version: %version", array("version" => gallery::version_string()));
?>
</li>
<li>
<?php
echo t("Albums: %count", array("count" => $album_count));
?>
</li>
<li>
<?php
echo t("Photos: %count", array("count" => $photo_count));
?>
</li>
</ul>