mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Admin dashboard updated
This commit is contained in:
@@ -322,12 +322,12 @@ class setup
|
||||
{
|
||||
$registry = registry::get_instance();
|
||||
?>
|
||||
<h1>Apache Server mods avalaibility</h1>
|
||||
<div style="position:relative;float:left;">
|
||||
<h2>Apache Server mods avalaibility</h2>
|
||||
<p>
|
||||
<?php
|
||||
echo _('Attention, seul le test de l\'activation des mods est effectue, leur bon fonctionnement ne l\'est pas ')
|
||||
?>
|
||||
</div>
|
||||
</p>
|
||||
|
||||
<ul id="apache_mods_checker" class="setup">
|
||||
|
||||
@@ -358,49 +358,49 @@ class setup
|
||||
<div class="infos"><img style="vertical-align:middle" src="/skins/icons/alert.png"/> <?php echo _('Attention, veuillez verifier la configuration h264_streaming, actuellement activee dans le setup'); ?></div>
|
||||
<?php } ?>
|
||||
</li>
|
||||
<style type="text/css">
|
||||
#apache_mods_checker div.infos{
|
||||
display:none;
|
||||
</ul>
|
||||
<style type="text/css">
|
||||
#apache_mods_checker div.infos{
|
||||
display:none;
|
||||
}
|
||||
#apache_mods_checker .blocker div.infos{
|
||||
display:block;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('#apache_mods_checker a').trigger('click');
|
||||
});
|
||||
|
||||
function check_apache_mod(el,mod)
|
||||
{
|
||||
var url = '/admin/test-';
|
||||
switch (mod) {
|
||||
case 'rewrite':
|
||||
url += 'rewrite';
|
||||
break;
|
||||
case 'xsendfile':
|
||||
url += 'xsendfile';
|
||||
break;
|
||||
case 'authtoken':
|
||||
url += 'authtoken';
|
||||
break;
|
||||
case 'h264':
|
||||
url += 'h264';
|
||||
break;
|
||||
}
|
||||
#apache_mods_checker .blocker div.infos{
|
||||
display:block;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('#apache_mods_checker a').trigger('click');
|
||||
|
||||
$.get(url, function(data) {
|
||||
if(data == '1')
|
||||
$(el).closest('li').removeClass('blocker');
|
||||
else
|
||||
$(el).closest('li').addClass('blocker');
|
||||
});
|
||||
|
||||
function check_apache_mod(el,mod)
|
||||
{
|
||||
var url = '/admin/test-';
|
||||
switch (mod) {
|
||||
case 'rewrite':
|
||||
url += 'rewrite';
|
||||
break;
|
||||
case 'xsendfile':
|
||||
url += 'xsendfile';
|
||||
break;
|
||||
case 'authtoken':
|
||||
url += 'authtoken';
|
||||
break;
|
||||
case 'h264':
|
||||
url += 'h264';
|
||||
break;
|
||||
}
|
||||
|
||||
$.get(url, function(data) {
|
||||
if(data == '1')
|
||||
$(el).closest('li').removeClass('blocker');
|
||||
else
|
||||
$(el).closest('li').addClass('blocker');
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
echo '</ul>';
|
||||
}
|
||||
|
||||
public static function check_phrasea()
|
||||
@@ -545,7 +545,7 @@ class setup
|
||||
{
|
||||
$Core = \bootstrap::getCore();
|
||||
|
||||
echo '<h1>' . _('setup:: Serveur Memcached') . '</h1>';
|
||||
echo '<h2>' . _('setup:: Serveur Memcached') . '</h2>';
|
||||
echo '<ul class="setup">';
|
||||
|
||||
$registry = registry::get_instance();
|
||||
@@ -645,7 +645,7 @@ class setup
|
||||
$engine = new searchEngine_adapter($registry);
|
||||
$status = $engine->get_status();
|
||||
|
||||
echo '<h1>' . _('setup::Etat du moteur de recherche') . '</h1>';
|
||||
echo '<h2>' . _('setup::Etat du moteur de recherche') . '</h2>';
|
||||
echo '<ul class="setup">';
|
||||
foreach ($status as $value) {
|
||||
echo '<li>' . sprintf('%s : %s', $value[0], $value[1]) . '</li>';
|
||||
@@ -653,7 +653,7 @@ class setup
|
||||
echo '</ul>';
|
||||
} catch (Exception $e) {
|
||||
|
||||
echo '<h1>' . _('setup::Sphinx confguration') . '</h1>';
|
||||
echo '<h2>' . _('setup::Sphinx confguration') . '</h2>';
|
||||
echo '<ul class="setup">';
|
||||
echo '<li class="blocker">' . $e->getMessage() . '</li>';
|
||||
echo '</ul>';
|
||||
|
@@ -41,8 +41,8 @@
|
||||
<blockquote>* {% trans 'This can not be changed' %}</blockquote>
|
||||
</div>
|
||||
<div class="btn-toolbar">
|
||||
<button class="field_adder btn">{% trans 'boutton::ajouter' %}</button>
|
||||
<button class="struct_saver btn">{% trans 'Valider' %}</button>
|
||||
<button class="field_adder btn btn-warning">{% trans 'boutton::ajouter' %}</button>
|
||||
<button class="struct_saver btn btn-warning">{% trans 'Valider' %}</button>
|
||||
</div>
|
||||
|
||||
<form id="form_struct" action="/admin/description/{{ databox.get_sbas_id() }}/" method="post" target="_self">
|
||||
@@ -154,7 +154,7 @@
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<button type="submit" class="btn">{% trans 'Valider' %}</button>
|
||||
<button type="submit" class="btn btn-warning">{% trans 'Valider' %}</button>
|
||||
</form>
|
||||
<style>
|
||||
.ui-autocomplete {
|
||||
|
@@ -9,7 +9,7 @@
|
||||
|
||||
{% block stylesheet %}
|
||||
<!--<link type="text/css" rel="stylesheet" href="/include/minify/f=include/jslibs/yui2.8/build/reset/reset.css,include/jslibs/jquery-ui-1.8.17/css/ui-lightness/jquery-ui-1.8.17.custom.css,include/jslibs/jquery-treeview/jquery.treeview.css,skins/common/main.css,skins/admin/admincolor.css,login/geonames.css,include/jslibs/jquery.contextmenu.css" />-->
|
||||
<link type="text/css" rel="stylesheet" href="/include/minify/f=include/jslibs/yui2.8/build/reset/reset.css,include/jslibs/jquery-treeview/jquery.treeview.css,include/jslibs/jquery.contextmenu.css,login/geonames.css,skins/common/main.css,skins/admin/admincolor.css,skins/admin/css/Main.css,skins/admin/css/Bases.css,skins/admin/css/Tables.css" />
|
||||
<link type="text/css" rel="stylesheet" href="/include/minify/f=include/jslibs/yui2.8/build/reset/reset.css,include/jslibs/jquery-treeview/jquery.treeview.css,include/jslibs/jquery.contextmenu.css,login/geonames.css,skins/common/main.css,skins/admin/css/Main.css,skins/admin/css/Bases.css,skins/admin/css/Tables.css" />
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
@@ -116,7 +116,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<button class="btn" type="submit">{% trans 'boutton::valider' %}</button>
|
||||
<button class="btn btn-warning" type="submit">{% trans 'boutton::valider' %}</button>
|
||||
<a href="/admin/publications/list/" class="btn" style="text-decoration:none;">{% trans 'boutton::annuler' %}</a>
|
||||
</div>
|
||||
</form>
|
||||
|
@@ -39,7 +39,7 @@
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn">{% trans 'boutton::valider' %}</button>
|
||||
<button type="submit" class="btn btn-warning">{% trans 'boutton::valider' %}</button>
|
||||
</form>
|
||||
|
||||
<table class="admintable" cellspacing="0" cellpadding="0">
|
||||
|
@@ -48,7 +48,7 @@
|
||||
|
||||
<form id="users_reset_rights" method="post" action="/admin/users/rights/reset/" target="_self" style="float:right">
|
||||
<input type="hidden" value="" name="users">
|
||||
<button type='button' class="btn">{% trans 'reset users rights' %}</button>
|
||||
<button type='button' class="btn btn-warning">{% trans 'reset users rights' %}</button>
|
||||
</form>
|
||||
|
||||
<table id="users" cellspacing="0" cellpadding="0" border="0" class="admintable">
|
||||
@@ -155,7 +155,7 @@
|
||||
<form id="users_page_form" method="post" target="_self" action="/admin/users/search/">
|
||||
<p>
|
||||
<span>{{users.get_total}} resultats,</span>
|
||||
|
||||
|
||||
{% set pages = users.get_total() / parm['per_page'] %}
|
||||
{% set modulo = users.get_total() % parm['per_page'] %}
|
||||
|
||||
@@ -222,7 +222,7 @@
|
||||
{% endif %}
|
||||
<input name="like_value" value="{{parm.like_value}}" type="hidden" />
|
||||
<input name="like_field" value="{{parm.like_field}}" type="hidden" />
|
||||
<button class="btn">{% trans 'boutton::exporter' %}</button>
|
||||
<button class="btn btn-warning">{% trans 'boutton::exporter' %}</button>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
@@ -296,7 +296,7 @@ if ($createBase || $mountBase) {
|
||||
?>
|
||||
<form action="databases.php" method="post" >
|
||||
<input type="hidden" value="" name="upgrade" />
|
||||
<input type="submit" class="btn" value="<?php echo _('update::Verifier els tables') ?>" />
|
||||
<input type="submit" class="btn btn-warning" value="<?php echo _('update::Verifier els tables') ?>" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
@@ -193,7 +193,7 @@ $JS = '$(document).ready(function() {
|
||||
});
|
||||
';
|
||||
?>
|
||||
<input type="submit" class="btn input-medium" style="margin-bottom: 10px;" value="<?php echo _('boutton::valider') ?>"/>
|
||||
<input type="submit" class="btn btn-warning" style="margin-bottom: 10px;" value="<?php echo _('boutton::valider') ?>"/>
|
||||
</form>
|
||||
<script type='text/javascript'>
|
||||
<?php echo $JS ?>
|
||||
|
@@ -41,48 +41,6 @@ if ($parm['flush_cache']) {
|
||||
}
|
||||
?>
|
||||
<style type="text/css">
|
||||
|
||||
h1{
|
||||
position:relative;
|
||||
float:left;
|
||||
width:100%;
|
||||
}
|
||||
ul.setup {
|
||||
position:relative;
|
||||
float:left;
|
||||
width:360px;
|
||||
list-style-type:none;
|
||||
padding:0 0 0 0px;
|
||||
margin:5px 0 5px 40px;
|
||||
border:1px solid #404040;
|
||||
}
|
||||
ul.setup table{
|
||||
width:100%;
|
||||
table-layout: fixed;
|
||||
}
|
||||
.setup li{
|
||||
margin:0px 0;
|
||||
padding:2px 5px 2px 30px;
|
||||
background-image:url(/skins/icons/ok.png);
|
||||
background-repeat:no-repeat;
|
||||
background-position:5px center;
|
||||
}
|
||||
.setup li.non-blocker{
|
||||
background-image:url(/skins/icons/alert.png);
|
||||
}
|
||||
.setup li.blocker{
|
||||
background-image:url(/skins/icons/delete.png);
|
||||
}
|
||||
tr.even{
|
||||
background-color:#CCCCCC;
|
||||
}
|
||||
#flush_button {
|
||||
width:360px;
|
||||
margin: 5px 0 5px 40px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
.ui-autocomplete {
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
@@ -151,161 +109,161 @@ if ($parm['admins']) {
|
||||
}
|
||||
|
||||
if ($cache_flushed) {
|
||||
?>
|
||||
<div>
|
||||
<?php echo _('all caches services have been flushed'); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div>
|
||||
<?php echo _('all caches services have been flushed'); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div>
|
||||
<h1><?php echo _('setup:: administrateurs de l\'application') ?></h1>
|
||||
<form id="admin_adder" action="sitestruct.php" method="post">
|
||||
<div class="board_section">
|
||||
<h1><?php echo _('setup:: administrateurs de l\'application') ?></h1>
|
||||
<form id="admin_adder" action="sitestruct.php" method="post">
|
||||
<ul>
|
||||
<?php
|
||||
$admins = User_Adapter::get_sys_admins();
|
||||
|
||||
foreach ($admins as $usr_id => $usr_login) {
|
||||
?>
|
||||
<div><input name="admins[]" type="checkbox" value="<?php echo $usr_id ?>" id="adm_<?php echo $usr_id ?>" checked /><label for="adm_<?php echo $usr_id ?>"><?php echo $usr_login; ?></label></div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div><?php echo _('setup:: ajouter un administrateur de l\'application') ?></div>
|
||||
<li>
|
||||
<label class="checkbox" for="adm_<?php echo $usr_id ?>">
|
||||
<input type="checkbox" id="adm_<?php echo $usr_id ?>" name="admins[]" value="<?php echo $usr_id ?>" checked />
|
||||
<?php echo $usr_login; ?>
|
||||
</label>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<label><?php echo _('setup:: ajouter un administrateur de l\'application') ?> :</label>
|
||||
<input class="admin_adder input-large" />
|
||||
<input type="hidden" class="new" name="admins[]" />
|
||||
<input type="submit" class="btn btn-warning" value="<?php echo _('boutton::valider') ?>" />
|
||||
</form>
|
||||
<h2><?php echo _('setup:: Reinitialisation des droits admins') ?></h2>
|
||||
<form id="admin_reset" action="sitestruct.php" method="post">
|
||||
<input type="hidden" name="sudo" value="1" />
|
||||
<input type="submit" class="btn btn-warning" value="<?php echo _('boutton::reinitialiser') ?>" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<input class="admin_adder"/>
|
||||
<input type="hidden" class="new" name="admins[]"/>
|
||||
<input type="submit" value="<?php echo _('boutton::valider') ?>" />
|
||||
</form>
|
||||
<h1><?php echo _('setup:: Reinitialisation des droits admins') ?></h1>
|
||||
|
||||
<form action="sitestruct.php" method="post" id="admin_reset">
|
||||
<input type="hidden" name="sudo" value="1" />
|
||||
<input type="submit" value="<?php echo _('boutton::reinitialiser') ?>" />
|
||||
</form>
|
||||
</div>
|
||||
<h1><?php echo _('setup:: Reglages generaux') ?></h1>
|
||||
<br>
|
||||
<h2><?php echo _('setup::Votre configuration') ?></h2>
|
||||
<div>
|
||||
<div style="position:relative;float:left;width:400px;">
|
||||
|
||||
<h1><?php echo _('setup::Tests d\'envois d\'emails'); ?></h1>
|
||||
<div class="board_section">
|
||||
<h1 style="margin-bottom: 0;"><?php echo _('setup:: Reglages generaux') ?></h1>
|
||||
<h2 style="margin-top: 0; font-style: italic;"><?php echo _('setup::Votre configuration') ?></h2>
|
||||
<div class="section_left">
|
||||
<h2><?php echo _('setup::Tests d\'envois d\'emails'); ?></h2>
|
||||
<form id="mail_checker" method="post" action="/admin/sitestruct.php" target="_self">
|
||||
<label>Email : </label><input name="email" type="text" />
|
||||
<input type="submit" value="<?php echo _('boutton::valider'); ?>"/>
|
||||
<input type="submit" class="btn btn-warning" value="<?php echo _('boutton::valider'); ?>"/>
|
||||
</form>
|
||||
<?php
|
||||
<?php
|
||||
|
||||
if ($parm['email']) {
|
||||
echo 'result : ';
|
||||
var_dump(mail::mail_test($parm['email']));
|
||||
}
|
||||
$php_constraints = setup::check_php_version();
|
||||
if ($parm['email']) {
|
||||
echo 'result : ';
|
||||
var_dump(mail::mail_test($parm['email']));
|
||||
}
|
||||
|
||||
|
||||
foreach ($php_constraints as $php_constraint) {
|
||||
echo '<h1>' . $php_constraint->get_name() . '</h1>';
|
||||
echo '<ul class="setup">';
|
||||
?>
|
||||
<li class="<?php echo $php_constraint->is_ok() ? 'good-enough' : 'blocker'; ?>">
|
||||
<?php echo $php_constraint->get_message(); ?>
|
||||
</li>
|
||||
<?php
|
||||
echo '</ul>';
|
||||
}
|
||||
|
||||
$php_constraints = setup::check_writability($registry);
|
||||
|
||||
echo '<h1>' . _('setup::Filesystem configuration') . '</h1>';
|
||||
$php_constraints = setup::check_php_version();
|
||||
foreach ($php_constraints as $php_constraint) {
|
||||
echo '<h2>' . $php_constraint->get_name() . '</h2>';
|
||||
echo '<ul class="setup">';
|
||||
foreach ($php_constraints as $constraint) {
|
||||
?>
|
||||
<li class="<?php echo ! $constraint->is_ok() ? ($constraint->is_blocker() ? 'blocker' : 'non-blocker') : 'good-enough'; ?>">
|
||||
<?php echo $constraint->get_message(); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
|
||||
$php_constraints = setup::check_binaries($registry);
|
||||
echo '<h1>' . _('setup::Executables') . '</h1>';
|
||||
echo '<ul class="setup">';
|
||||
foreach ($php_constraints as $constraint) {
|
||||
?>
|
||||
<li class="<?php echo ! $constraint->is_ok() ? ($constraint->is_blocker() ? 'blocker' : 'non-blocker') : 'good-enough'; ?>">
|
||||
<?php echo $constraint->get_message(); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
|
||||
$php_constraints = setup::check_php_extension();
|
||||
echo '<h1>' . _('setup::PHP extensions') . '</h1>';
|
||||
echo '<ul class="setup">';
|
||||
foreach ($php_constraints as $constraint) {
|
||||
?>
|
||||
<li class="<?php echo ! $constraint->is_ok() ? ($constraint->is_blocker() ? 'blocker' : 'non-blocker') : 'good-enough'; ?>">
|
||||
<?php echo $constraint->get_message(); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
$php_constraints = setup::check_cache_server();
|
||||
echo '<h1>' . _('setup::Serveur de cache') . '</h1>';
|
||||
echo '<ul class="setup">';
|
||||
foreach ($php_constraints as $constraint) {
|
||||
?>
|
||||
<li class="<?php echo ! $constraint->is_ok() ? ($constraint->is_blocker() ? 'blocker' : 'non-blocker') : 'good-enough'; ?>">
|
||||
<?php echo $constraint->get_message(); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
echo '</ul>';
|
||||
?>
|
||||
</div>
|
||||
<div style="position:relative;float:left;width:400px;margin-left:25px;">
|
||||
<?php
|
||||
$php_constraints = setup::check_phrasea();
|
||||
echo '<h1>' . _('Phrasea Module') . '</h1>';
|
||||
echo '<ul class="setup">';
|
||||
foreach ($php_constraints as $constraint) {
|
||||
?>
|
||||
<li class="<?php echo ! $constraint->is_ok() ? ($constraint->is_blocker() ? 'blocker' : 'non-blocker') : 'good-enough'; ?>">
|
||||
<?php echo $constraint->get_message(); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
setup::check_apache();
|
||||
setup::check_mod_auth_token();
|
||||
setup::check_cache_opcode();
|
||||
setup::check_cache_memcache();
|
||||
|
||||
if ($Core->getCache()->isServer()) {
|
||||
?>
|
||||
<form id="cache_flusher" method="post" action="sitestruct.php">
|
||||
<input type="hidden" name="flush_cache" value="1"/>
|
||||
<input id="flush_button" type="submit" value="Flush All Caches" />
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
|
||||
echo '<h1>' . _('OPCode cache') . '</h1>';
|
||||
echo '<ul class="setup">';
|
||||
if ($Core['OpcodeCache']->getName() == 'array') {
|
||||
echo '<li class="non-blocker">' . _('Array opcode cache is activated, but phrasea strongly recommand the use of APC or Xcache in production') . '</li>';
|
||||
} else {
|
||||
echo '<li>' . $Core['OpcodeCache']->getName() . '</li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
setup::check_sphinx_search();
|
||||
setup::check_php_configuration();
|
||||
?>
|
||||
</div>
|
||||
<li class="<?php echo $php_constraint->is_ok() ? 'good-enough' : 'blocker'; ?>">
|
||||
<?php echo $php_constraint->get_message(); ?>
|
||||
</li>
|
||||
<?php
|
||||
echo '</ul>';
|
||||
}
|
||||
|
||||
$php_constraints = setup::check_writability($registry);
|
||||
echo '<h2>' . _('setup::Filesystem configuration') . '</h2>';
|
||||
echo '<ul class="setup">';
|
||||
foreach ($php_constraints as $constraint) {
|
||||
?>
|
||||
<li class="<?php echo ! $constraint->is_ok() ? ($constraint->is_blocker() ? 'blocker' : 'non-blocker') : 'good-enough'; ?>">
|
||||
<?php echo $constraint->get_message(); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
$php_constraints = setup::check_binaries($registry);
|
||||
echo '<h2>' . _('setup::Executables') . '</h2>';
|
||||
echo '<ul class="setup">';
|
||||
foreach ($php_constraints as $constraint) {
|
||||
?>
|
||||
<li class="<?php echo ! $constraint->is_ok() ? ($constraint->is_blocker() ? 'blocker' : 'non-blocker') : 'good-enough'; ?>">
|
||||
<?php echo $constraint->get_message(); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
$php_constraints = setup::check_php_extension();
|
||||
echo '<h2>' . _('setup::PHP extensions') . '</h2>';
|
||||
echo '<ul class="setup">';
|
||||
foreach ($php_constraints as $constraint) {
|
||||
?>
|
||||
<li class="<?php echo ! $constraint->is_ok() ? ($constraint->is_blocker() ? 'blocker' : 'non-blocker') : 'good-enough'; ?>">
|
||||
<?php echo $constraint->get_message(); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
$php_constraints = setup::check_cache_server();
|
||||
echo '<h2>' . _('setup::Serveur de cache') . '</h2>';
|
||||
echo '<ul class="setup">';
|
||||
foreach ($php_constraints as $constraint) {
|
||||
?>
|
||||
<li class="<?php echo ! $constraint->is_ok() ? ($constraint->is_blocker() ? 'blocker' : 'non-blocker') : 'good-enough'; ?>">
|
||||
<?php echo $constraint->get_message(); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
echo '</ul>';
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="section_right">
|
||||
<?php
|
||||
$php_constraints = setup::check_phrasea();
|
||||
echo '<h2>' . _('Phrasea Module') . '</h2>';
|
||||
echo '<ul class="setup">';
|
||||
foreach ($php_constraints as $constraint) {
|
||||
?>
|
||||
<li class="<?php echo ! $constraint->is_ok() ? ($constraint->is_blocker() ? 'blocker' : 'non-blocker') : 'good-enough'; ?>">
|
||||
<?php echo $constraint->get_message(); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
setup::check_apache();
|
||||
setup::check_mod_auth_token();
|
||||
setup::check_cache_opcode();
|
||||
setup::check_cache_memcache();
|
||||
|
||||
if ($Core->getCache()->isServer()) {
|
||||
?>
|
||||
<form id="cache_flusher" method="post" action="sitestruct.php">
|
||||
<input type="hidden" name="flush_cache" value="1"/>
|
||||
<input type="submit" id="flush_button" class="btn btn-warning" value="Flush All Caches" />
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
|
||||
echo '<h2>' . _('OPCode cache') . '</h2>';
|
||||
echo '<ul class="setup">';
|
||||
if ($Core['OpcodeCache']->getName() == 'array') {
|
||||
echo '<li class="non-blocker">' . _('Array opcode cache is activated, but phrasea strongly recommand the use of APC or Xcache in production') . '</li>';
|
||||
} else {
|
||||
echo '<li>' . $Core['OpcodeCache']->getName() . '</li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
setup::check_sphinx_search();
|
||||
setup::check_php_configuration();
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@@ -1,6 +0,0 @@
|
||||
|
||||
/**
|
||||
|
||||
FFFA00 9E9C3C 777400 FFFC65 FFFEB5
|
||||
|
||||
**/
|
@@ -69,12 +69,12 @@ select {
|
||||
}
|
||||
li.selected,
|
||||
div.selected {
|
||||
background-color: #f0ad30;
|
||||
background-color: #faa732;
|
||||
color: #ffffff;
|
||||
}
|
||||
li.selected a,
|
||||
div.selected a {
|
||||
background-color: #f0ad30;
|
||||
background-color: #faa732;
|
||||
color: #ffffff;
|
||||
}
|
||||
.treeview ul {
|
||||
@@ -118,7 +118,7 @@ div.finder div.content div.title {
|
||||
overflow: auto;
|
||||
}
|
||||
#FNDR li.selected {
|
||||
background-color: #f0ad30;
|
||||
background-color: #faa732;
|
||||
color: #ffffff;
|
||||
}
|
||||
#FNDR a {
|
||||
@@ -204,6 +204,51 @@ div.switch_right.unchecked {
|
||||
.ui-datepicker {
|
||||
z-index: 1500;
|
||||
}
|
||||
/******* BOARD ****************************************************************/
|
||||
.board_section {
|
||||
margin: 0 0 30px;
|
||||
}
|
||||
.board_section ul {
|
||||
margin: 0 0 15px 15px;
|
||||
}
|
||||
.board_section div[class^="section_"] {
|
||||
width: 400px;
|
||||
height: auto;
|
||||
}
|
||||
.board_section div[class^="section_"] h2 {
|
||||
line-height: 24px;
|
||||
}
|
||||
.board_section div[class^="section_"] ul.setup {
|
||||
width: 360px;
|
||||
border: 1px solid #cccccc;
|
||||
list-style-type: none;
|
||||
}
|
||||
.board_section div[class^="section_"] ul.setup li {
|
||||
padding: 2px 5px 2px 30px;
|
||||
background-image: url(/skins/icons/ok.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 5px center;
|
||||
}
|
||||
.board_section div[class^="section_"] ul.setup li.non-blocker {
|
||||
background-image: url(/skins/icons/alert.png);
|
||||
}
|
||||
.board_section div[class^="section_"] ul.setup li.blocker {
|
||||
background-image: url(/skins/icons/delete.png);
|
||||
}
|
||||
.board_section div[class^="section_"] ul.setup li:hover {
|
||||
background-color: #fffbcd;
|
||||
}
|
||||
.board_section .section_left {
|
||||
float: left;
|
||||
}
|
||||
.board_section .section_right {
|
||||
margin-left: 430px;
|
||||
padding-top: 1px;
|
||||
}
|
||||
.board_section #flush_button {
|
||||
width: 362px;
|
||||
margin-left: 15px;
|
||||
}
|
||||
/******* PUBLICATIONS *********************************************************/
|
||||
.form_publication .controls {
|
||||
margin-left: 10px;
|
||||
|
@@ -47,7 +47,7 @@ table.admintable tr {
|
||||
vertical-align: middle;
|
||||
}
|
||||
table.admintable tr.selected:hover {
|
||||
background-color: #f0ad30;
|
||||
background-color: #faa732;
|
||||
}
|
||||
table.admintable thead {
|
||||
background-color: #e5d4a0;
|
||||
@@ -61,10 +61,10 @@ table.admintable tbody tr.even {
|
||||
background-color: #fffbcd;
|
||||
}
|
||||
table.admintable tbody tr.selected {
|
||||
background-color: #f0ad30;
|
||||
background-color: #faa732;
|
||||
}
|
||||
table.admintable tbody tr:hover {
|
||||
background-color: #f0ad30;
|
||||
background-color: #faa732;
|
||||
cursor: pointer;
|
||||
}
|
||||
table.admintable tbody td {
|
||||
@@ -87,10 +87,10 @@ table.admintable .centered {
|
||||
display: none;
|
||||
}
|
||||
#users th.sortable.hover {
|
||||
background-color: #f0ad30;
|
||||
background-color: #faa732;
|
||||
}
|
||||
#users th.sortable.sorted {
|
||||
background-color: #f0ad30;
|
||||
background-color: #faa732;
|
||||
}
|
||||
#users th.sortable.sorted span.ord_notifier {
|
||||
display: inline;
|
||||
@@ -125,8 +125,8 @@ td.users_col.options {
|
||||
font-weight: bold;
|
||||
}
|
||||
#tooltip-usr #tabledescexp td.tooltip-title {
|
||||
background-color: #f0ad30;
|
||||
border: 1px solid #dd9510;
|
||||
background-color: #faa732;
|
||||
border: 1px solid #f39106;
|
||||
margin: 10px auto;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
|
@@ -7,7 +7,7 @@
|
||||
@grey: #CCC;
|
||||
@blue: #0088CC;
|
||||
@red: #F00;
|
||||
@orange: #F0AD30;
|
||||
@orange: #FAA732; //F0AD30;
|
||||
@lemon: #FCEB3F;
|
||||
@sand: #FFFBCD;
|
||||
@dk-sand: #E5D4A0;
|
||||
|
@@ -7,7 +7,7 @@
|
||||
@grey: #CCC;
|
||||
@blue: #0088CC;
|
||||
@red: #F00;
|
||||
@orange: #F0AD30;
|
||||
@orange: #FAA732; //F0AD30;
|
||||
@lemon: #FCEB3F;
|
||||
@sand: #FFFBCD;
|
||||
@dk-sand: #E5D4A0;
|
||||
@@ -247,6 +247,53 @@ div.switch_right {
|
||||
z-index:1500;
|
||||
}
|
||||
|
||||
/******* BOARD ****************************************************************/
|
||||
|
||||
.board_section {
|
||||
margin: 0 0 30px;
|
||||
ul {
|
||||
margin: 0 0 15px 15px;
|
||||
}
|
||||
div[class^="section_"] {
|
||||
width: 400px;
|
||||
height: auto;
|
||||
h2 {
|
||||
line-height: 24px;
|
||||
}
|
||||
ul.setup {
|
||||
width: 360px;
|
||||
border: 1px solid @grey;
|
||||
list-style-type: none;
|
||||
li {
|
||||
padding: 2px 5px 2px 30px;
|
||||
background-image: url(/skins/icons/ok.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 5px center;
|
||||
&.non-blocker {
|
||||
background-image: url(/skins/icons/alert.png);
|
||||
}
|
||||
&.blocker {
|
||||
background-image: url(/skins/icons/delete.png);
|
||||
}
|
||||
&:hover {
|
||||
.bg(@sand);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.section_left {
|
||||
float: left;
|
||||
}
|
||||
.section_right {
|
||||
margin-left: 430px;
|
||||
padding-top: 1px;
|
||||
}
|
||||
#flush_button {
|
||||
width: 362px;
|
||||
margin-left: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
/******* PUBLICATIONS *********************************************************/
|
||||
|
||||
.form_publication {
|
||||
|
@@ -7,7 +7,7 @@
|
||||
@grey: #CCC;
|
||||
@blue: #0088CC;
|
||||
@red: #F00;
|
||||
@orange: #F0AD30;
|
||||
@orange: #FAA732; //F0AD30;
|
||||
@lemon: #FCEB3F;
|
||||
@sand: #FFFBCD;
|
||||
@dk-sand: #E5D4A0;
|
||||
|
Reference in New Issue
Block a user