redirection statislite
This commit is contained in:
parent
01dce753d2
commit
23e33f7f89
|
@ -87,6 +87,11 @@ class search extends common {
|
||||||
if(is_dir('./module/search/ressource/')) $this->removeDir('./module/search/ressource/');
|
if(is_dir('./module/search/ressource/')) $this->removeDir('./module/search/ressource/');
|
||||||
$this->setData(['module',$this->getUrl(0),'config', 'versionData', '3.2' ]);
|
$this->setData(['module',$this->getUrl(0),'config', 'versionData', '3.2' ]);
|
||||||
}
|
}
|
||||||
|
// Mise à jour 3.3
|
||||||
|
if (version_compare($versionData, '3.3', '<') ) {
|
||||||
|
// Mettre à jour la version
|
||||||
|
$this->setData(['module',$this->getUrl(0),'config', 'versionData', '3.3' ]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -108,6 +108,10 @@ class slider extends common {
|
||||||
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','6.0']);
|
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','6.0']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Version 6.1
|
||||||
|
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '6.1', '<') ) {
|
||||||
|
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','6.1']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -23,15 +23,15 @@
|
||||||
class statislite extends common {
|
class statislite extends common {
|
||||||
|
|
||||||
public static $actions = [
|
public static $actions = [
|
||||||
'config' => self::GROUP_MODERATOR,
|
'config' => self::GROUP_EDITOR,
|
||||||
'advanced' => self::GROUP_MODERATOR,
|
'advanced' => self::GROUP_EDITOR,
|
||||||
'initJson' => self::GROUP_MODERATOR,
|
'initJson' => self::GROUP_EDITOR,
|
||||||
'sauveJson' => self::GROUP_MODERATOR,
|
'sauveJson' => self::GROUP_EDITOR,
|
||||||
'index' => self::GROUP_VISITOR,
|
'index' => self::GROUP_VISITOR,
|
||||||
'conversionTime' => self::GROUP_VISITOR
|
'conversionTime' => self::GROUP_VISITOR
|
||||||
];
|
];
|
||||||
|
|
||||||
const VERSION = '4.4';
|
const VERSION = '4.5';
|
||||||
const REALNAME = 'Statislite';
|
const REALNAME = 'Statislite';
|
||||||
const DELETE = true;
|
const DELETE = true;
|
||||||
const UPDATE = '2.6';
|
const UPDATE = '2.6';
|
||||||
|
@ -89,6 +89,10 @@ class statislite extends common {
|
||||||
copy('./module/statislite/ressource/tmp/.htaccess', self::DATAMODULE.'/tmp/.htaccess');
|
copy('./module/statislite/ressource/tmp/.htaccess', self::DATAMODULE.'/tmp/.htaccess');
|
||||||
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','4.4']);
|
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','4.4']);
|
||||||
}
|
}
|
||||||
|
// Version 4.5
|
||||||
|
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '4.5', '<') ) {
|
||||||
|
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','4.5']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -12,21 +12,21 @@ echo template::formOpen('statisliteConfigForm'); ?>
|
||||||
'value' => $text['statislite_view']['config'][1]
|
'value' => $text['statislite_view']['config'][1]
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2">
|
<div class="col2"<?php if( $this->getUser('group') < self::GROUP_MODERATOR ) echo 'style="display:none"'?>>
|
||||||
<?php echo template::button('addonIndexHelp', [
|
<?php echo template::button('addonIndexHelp', [
|
||||||
'class' => 'buttonHelp',
|
'class' => 'buttonHelp',
|
||||||
'ico' => 'help',
|
'ico' => 'help',
|
||||||
'value' => $text['statislite_view']['config'][2]
|
'value' => $text['statislite_view']['config'][2]
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2 offset4">
|
<div class="col2 offset4"<?php if( $this->getUser('group') < self::GROUP_MODERATOR ) echo 'style="display:none"';?> >
|
||||||
<?php echo template::button('configAdvancedButton', [
|
<?php echo template::button('configAdvancedButton', [
|
||||||
'href' => helper::baseUrl() . $this->getUrl(0).'/advanced',
|
'href' => helper::baseUrl() . $this->getUrl(0).'/advanced',
|
||||||
'value' => $text['statislite_view']['config'][3],
|
'value' => $text['statislite_view']['config'][3],
|
||||||
'ico' => 'cog-alt',
|
'ico' => 'cog-alt'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col2">
|
<div class="col2 <?php if( $this->getUser('group') < self::GROUP_MODERATOR ) echo 'offset8'; ?> " >
|
||||||
<?php echo template::submit('statisliteConfigSubmit',[
|
<?php echo template::submit('statisliteConfigSubmit',[
|
||||||
'value' => $text['statislite_view']['config'][4]
|
'value' => $text['statislite_view']['config'][4]
|
||||||
]); ?>
|
]); ?>
|
||||||
|
@ -38,7 +38,7 @@ echo template::formOpen('statisliteConfigForm'); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<div class="block">
|
<div class="block" <?php if( $this->getUser('group') < self::GROUP_MODERATOR ) echo 'style="display:none"'?> >
|
||||||
<h4><?php echo $text['statislite_view']['config'][5]; ?></h4>
|
<h4><?php echo $text['statislite_view']['config'][5]; ?></h4>
|
||||||
<div class="row" >
|
<div class="row" >
|
||||||
<div class="col4">
|
<div class="col4">
|
||||||
|
@ -68,7 +68,7 @@ echo template::formOpen('statisliteConfigForm'); ?>
|
||||||
<?php echo template::select('statisliteConfigUsersExclus', $users_exclus,[
|
<?php echo template::select('statisliteConfigUsersExclus', $users_exclus,[
|
||||||
'help' => $text['statislite_view']['config'][12],
|
'help' => $text['statislite_view']['config'][12],
|
||||||
'label' => $text['statislite_view']['config'][13],
|
'label' => $text['statislite_view']['config'][13],
|
||||||
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'usersExclus'])
|
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'usersExclus']),
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -164,7 +164,7 @@ echo template::formOpen('statisliteConfigForm'); ?>
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block">
|
<div class="block"<?php if( $this->getUser('group') < self::GROUP_MODERATOR ) echo 'style="display:none"'?>>
|
||||||
<h4><?php echo $text['statislite_view']['config'][32]; ?></h4>
|
<h4><?php echo $text['statislite_view']['config'][32]; ?></h4>
|
||||||
<?php echo template::checkbox('statisliteConfigMajForce', true, $text['statislite_view']['config'][33], [
|
<?php echo template::checkbox('statisliteConfigMajForce', true, $text['statislite_view']['config'][33], [
|
||||||
'checked' => false,
|
'checked' => false,
|
||||||
|
@ -172,7 +172,7 @@ echo template::formOpen('statisliteConfigForm'); ?>
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block">
|
<div class="block"<?php if( $this->getUser('group') < self::GROUP_MODERATOR ) echo 'style="display:none"'?>>
|
||||||
<h4><?php echo $text['statislite_view']['config'][35];?></h4>
|
<h4><?php echo $text['statislite_view']['config'][35];?></h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col2">
|
<div class="col2">
|
||||||
|
@ -187,7 +187,7 @@ echo template::formOpen('statisliteConfigForm'); ?>
|
||||||
'class' => 'configInitJson buttonRed',
|
'class' => 'configInitJson buttonRed',
|
||||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/initJson' . '/' . $_SESSION['csrf'],
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/initJson' . '/' . $_SESSION['csrf'],
|
||||||
'ico' => 'cancel',
|
'ico' => 'cancel',
|
||||||
'value' => $text['statislite_view']['config'][37]
|
'value' => $text['statislite_view']['config'][37],
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue