mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-07-06 11:50:48 +02:00
Initial commit
Functional, without SSO
This commit is contained in:
29
sources/others/update/2.8.php
Normal file
29
sources/others/update/2.8.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__."/update.php";
|
||||
|
||||
class Update_28 extends Update
|
||||
{
|
||||
public function update()
|
||||
{
|
||||
$delete_files = array(
|
||||
"/lib/Lbc/Item.php", // fichier inutile depuis 2.7
|
||||
"/lib/Lbc/Parser.php", // fichier inutile depuis 2.7
|
||||
"/lib/AdService/Autoloader.php",
|
||||
"/lib/Message/SMS/FreeMobile.php",
|
||||
"/lib/Message/SMS/Ovh.php",
|
||||
"/lib/Message/Abstract.php",
|
||||
"/lib/Message/Pushbullet.php",
|
||||
);
|
||||
foreach ($delete_files AS $file) {
|
||||
if (is_file(DOCUMENT_ROOT.$file)) {
|
||||
@unlink(DOCUMENT_ROOT.$file);
|
||||
}
|
||||
}
|
||||
|
||||
if ("db" == $this->_storage) {
|
||||
$this->_dbConnection->query("ALTER TABLE `LBC_Alert` ADD `send_notifymyandroid` TINYINT(1) NOT NULL AFTER `send_pushbullet`");
|
||||
$this->_dbConnection->query("ALTER TABLE `LBC_Alert` ADD `send_pushover` TINYINT(1) NOT NULL AFTER `send_notifymyandroid`");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user