mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-12-06 05:51:57 +01:00
Upgrade LBCAlerte to version 3.3
Add upgrade script
This commit is contained in:
18
sources/app/annonce/scripts/view.php
Normal file
18
sources/app/annonce/scripts/view.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use AdService\SiteConfigFactory;
|
||||
|
||||
if (!isset($_GET["id"])) {
|
||||
header("LOCATION: ./?mod=annonce"); exit;
|
||||
}
|
||||
|
||||
$ad = $storage->fetchById($_GET["id"]);
|
||||
if (!$ad) {
|
||||
header("LOCATION: ./?mod=annonce"); exit;
|
||||
}
|
||||
|
||||
try {
|
||||
$ad_config = SiteConfigFactory::factory($ad->getLink());
|
||||
} catch (Exception $e) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user