本文整理匯總了PHP中keepGet函數的典型用法代碼示例。如果您正苦於以下問題:PHP keepGet函數的具體用法?PHP keepGet怎麽用?PHP keepGet使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了keepGet函數的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _e
<div><?php
echo $update_infos['description'];
?>
</div>
<?php
}
// No new update
} else {
?>
<h4><?php
_e("Check for updates");
?>
</h4>
<a class="info smallspace success" href="./?p=check<?php
echo keepGet('(p|b|s)', false);
?>
"><?php
_e("Your version seems to be up to date, but you can check updates manually by clicking here.");
?>
</a>
<?php
}
}
?>
<?php
} else {
?>
<h3 class="login manager-images"><?php
_e("Manager access");
?>
示例2: logoFormField
function logoFormField($id, $name)
{
if (file_exists(JAPPIX_BASE . '/store/logos/' . $name . '.png')) {
echo '<span class="logo_links"><a class="remove manager-images" href="./?k=' . urlencode($name) . keepGet('k', false) . '" title="' . T_("Remove this logo") . '"></a><a class="view manager-images" href="./store/logos/' . $name . '.png" target="_blank" title="' . T_("View this logo") . '"></a></span>';
} else {
echo '<input id="logo_own_' . $id . '_location" type="file" name="logo_own_' . $id . '_location" accept="image/*" />';
}
echo "\n";
}
示例3: _e
<h2>Jappix.net</h2>
<div class="tabulate">
<a href="http://jappix.net/">
<span class="name">Jappix Network</span>
<span class="desc"><?php
_e("Find a public Jappix node.");
?>
</span>
</a>
</div>
</div>
</div>
<div class="locale" data-keepget="<?php
echo keepGet('l', false);
?>
">
<div class="current">
<div class="current_align"><?php
echo getLanguageName($locale);
?>
</div>
</div>
</div>
<?php
// Add the notice
$conf_notice = readNotice();
$type_notice = $conf_notice['type'];
$text_notice = $conf_notice['notice'];
示例4: languageSwitcher
function languageSwitcher($active_locale)
{
// Initialize
$keep_get = keepGet('l', false);
$list = availableLocales($active_locale);
$html = '';
// Generate the HTML code
foreach ($list as $current_id => $current_name) {
$html .= '<a href="./?l=' . $current_id . $keep_get . '">' . htmlspecialchars($current_name) . '</a>, ';
}
// Output the HTML code
return $html;
}
示例5: _e
</form>
</div>
<a class="smartphone" href="http://jappix.mobi/">
<span class="title"><?php
_e("Jappix for your phone");
?>
»</span>
<span class="desc"><?php
_e("A single phone app for messages, channels, profiles and much more!");
?>
</span>
</a>
<a href="./?m=desktop<?php
echo keepGet('m', false);
?>
"><?php
_e("Desktop");
?>
</a>
<?php
if (hasLegal()) {
?>
- <a href="<?php
echo htmlspecialchars(LEGAL);
?>
"><?php
_e("Legal");
?>
</a><?php
示例6: array
}
}
}
// These steps are not available
if ($step > 6 || !is_int($step)) {
$step = 6;
}
// Get the current step title
$names = array(T_("Welcome"), T_("Storage configuration"), T_("Administrator account"), T_("Main configuration"), T_("Hosts configuration"), T_("Services installation"));
// Continue marker
$continue = true;
// Form action
if ($step < 6) {
$form_action = './?m=install' . keepGet('m', false);
} else {
$form_action = './' . keepGet('m', true);
}
?>
<!DOCTYPE html>
<?php
htmlTag($locale);
?>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="robots" content="none" />
<title><?php
_e("Jappix installation");
?>
• <?php
echo $names[$step - 1];
示例7: browseFolder
function browseFolder($folder, $mode)
{
// Scan the target directory
$directory = JAPPIX_BASE . '/store/' . $folder;
$scan = scandir($directory);
$scan = array_diff($scan, array('.', '..', '.svn', 'index.html'));
$keep_get = keepGet('(s|b)', false);
// Odd/even marker
$marker = 'odd';
// Not in the root folder: show previous link
if (strpos($folder, '/') != false) {
// Filter the folder name
$previous_folder = substr($folder, 0, strrpos($folder, '/'));
echo '<div class="one-browse previous manager-images"><a href="./?b=' . $mode . '&s=' . urlencode($previous_folder) . $keep_get . '">' . T_("Previous") . '</a></div>';
}
// Empty or non-existing directory?
if (!count($scan) || !is_dir($directory)) {
echo '<div class="one-browse ' . $marker . ' alert manager-images">' . T_("The folder is empty.") . '</div>';
return false;
}
// Echo the browsing HTML code
foreach ($scan as $current) {
// Generate the item path$directory
$path = $directory . '/' . $current;
$file = $folder . '/' . $current;
// Directory?
if (is_dir($path)) {
$type = 'folder';
$href = './?b=' . $mode . '&s=' . urlencode($file) . $keep_get;
$target = '';
} else {
$type = getFileType(getFileExt($path));
$href = $path;
$target = ' target="_blank"';
}
echo '<div class="one-browse ' . $marker . ' ' . $type . ' manager-images"><a href="' . $href . '"' . $target . '>' . htmlspecialchars($current) . '</a><input type="checkbox" name="element_' . md5($file) . '" value="' . htmlspecialchars($file) . '" /></div>';
// Change the marker
if ($marker == 'odd') {
$marker = 'even';
} else {
$marker = 'odd';
}
}
return true;
}