Ejemplo n.º 1
0
						<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");
                            ?>
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";
}
Ejemplo n.º 3
0
				
				<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'];
Ejemplo n.º 4
0
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;
}
Ejemplo n.º 5
0
			</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 
Ejemplo n.º 6
0
        }
    }
}
// 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");
?>
 &bull; <?php 
echo $names[$step - 1];
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;
}