Skip to content
Snippets Groups Projects
Commit a8f8f418 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

Suppression des ext abadonnées & non terminées

parent 441c76d5
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 524 deletions
<!-- Contenu -->
<div class="page-content d-flex flex-column" leftSidebar="240" rightSidebar="0" style="height:calc(100% - 60px);">
<div class="d-flex align-items-center">
<h3><?=translate("loadingscreens")?></h3>
<div class="ml-2">
<button type="button" class="btn btn-brown btn-sm" data-toggle="modal" data-target="#createLoadingScreen"><i class="fas fa-plus-circle"></i> <?=translate("create")?></button>
</div>
</div>
<p><?=translate("loadingscreens_listPhrase")?></p>
<div class="d-flex flex-column" id="page-content">
<div class="d-flex flex-wrap">
<?php
$loadingscreens = $bdd->query('SELECT * FROM `vbcmsLoadingScreens_list`')->fetchAll(PDO::FETCH_ASSOC);
foreach ($loadingscreens as $loadingscreen){
$backgroundImage = 'https://api.apiflash.com/v1/urltoimage?access_key=65e037cb81b44087ba537b58dd19e4ff&format=jpeg&quality=80&response_type=image&url='.urlencode(VBcmsGetSetting("websiteUrl").$this->clientAccess.'/'.$loadingscreen['identifier']).'/&width=1920&height=1080';
echo('
<div class="ld-card border rounded mx-1 my-1" style="background-image: url(\''.$backgroundImage.'\');">
<div class="ld-card-content p-2">
<span><strong>'.$loadingscreen['showName'].'</strong></span>
<a href="'.VBcmsGetSetting("websiteUrl").'vbcms-admin/'.$this->adminAccess.'/edit?id='.$loadingscreen['identifier'].'" class="btn btn-sm btn-brown float-right">'.translate('modify').'</a>
</div>
</div>');
}
?>
<!--
<div class="ld-card border rounded mx-1 my-1" style="background-image: url('https://sofianelasri.mtxserv.com/vbcms-content/uploads/stayonline.jpg');">
<div class="ld-card-content p-2">
<span><strong>Un super loading screen</strong></span>
<a href="#" class="btn btn-sm btn-brown float-right">Modifier</a>
</div>
</div>
<div class="ld-card border rounded mx-1 my-1" style="background-image: url('https://sofianelasri.mtxserv.com/vbcms-content/uploads/doubleload.jpg');">
<div class="ld-card-content p-2">
<span><strong>Un super loading screen</strong></span>
<a href="#" class="btn btn-sm btn-brown float-right">Modifier</a>
</div>
</div>
<div class="ld-card border rounded mx-1 my-1" style="background-image: url('https://sofianelasri.mtxserv.com/vbcms-content/uploads/themeTopImage.jpg');">
<div class="ld-card-content p-2">
<span><strong>Un super loading screen</strong></span>
<a href="#" class="btn btn-sm btn-brown float-right">Modifier</a>
</div>
</div>
<div class="ld-card border rounded mx-1 my-1" style="background-image: url('https://sofianelasri.mtxserv.com/vbcms-content/uploads/scp2.jpg');">
<div class="ld-card-content p-2">
<span><strong>Un super loading screen</strong></span>
<a href="#" class="btn btn-sm btn-brown float-right">Modifier</a>
</div>
</div> -->
</div>
</div>
<div class="modal fade" id="createLoadingScreen">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header bg-brown text-white">
<h5 id="extensionDesacctivationModalTitle" class="modal-title"><?=translate("loadingscreens_giveAName")?></h5>
<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form id="createLoadingScreenForm">
<p><?=translate("ws_askExtToDeleteItsData")?></p>
<div class="form-group">
<label><?=translate("name")?></label>
<input type="text" class="form-control" id="showName" name="showName">
<div id="badName" class="invalid-feedback"></div>
</div>
<div class="form-group">
<label><?=translate("ws_clientAccess")?></label>
<input type="text" class="form-control" id="identifier" name="identifier">
<small class="form-text text-muted"><?=translate("loadingscreens_createLegendIdentifier")?></small>
<div id="badIdentifier" class="invalid-feedback"></div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-brown" data-dismiss="modal"><?=translate("cancel")?></button>
<button id="createLoadingScreenCreateBtn" onclick="createLoadingScreen()" type="button" class="btn btn-brown" disabled><?=translate("create")?></button>
</div>
</div>
</div>
</div>
<script type="text/javascript">
document.getElementById('showName').addEventListener('change', function (evt) {
let slug = this.value
slug = slug.toLowerCase().replace(/ /g,'-').replace(/[^\w-]+/g,'');
$("#identifier").val(slug);
let array = {};
array.type="showName";
array.name=this.value;
$.get("<?=VBcmsGetSetting("websiteUrl")?>vbcms-admin/<?=$urlPath[2]?>/backTasks?checkIdentifierOrName="+encodeURIComponent(JSON.stringify(array)), function(data) {
let json = JSON.parse(data);
if(typeof json.error === 'undefined'){
if(json.used == false){
$("#badName").css("display", "none");
if(typeof $("#createLoadingScreenCreateBtn").attr("disabled") !== 'undefined' && $("#badIdentifier").css("display") == "none" && $("#identifier").val() != ""){
$("#createLoadingScreenCreateBtn").removeAttr("disabled");
}
if(!isAlphanumeric($("#identifier").val())){
if(typeof $("#createLoadingScreenCreateBtn").attr("disabled") === 'undefined'){
$("#createLoadingScreenCreateBtn").attr("disabled", "");
}
}
} else {
$("#badName").html("<?=translate('alreadyUsed')?>");
$("#badName").css("display", "block");
if(typeof $("#createLoadingScreenCreateBtn").attr("disabled") === 'undefined'){
$("#createLoadingScreenCreateBtn").attr("disabled", "");
}
}
} else {
$("#badName").html(json.error);
$("#badName").css("display", "block");
if(typeof $("#createLoadingScreenCreateBtn").attr("disabled") === 'undefined'){
$("#createLoadingScreenCreateBtn").attr("disabled", "");
}
}
})
});
document.getElementById('identifier').addEventListener('change', function (evt) {
let array = {};
array.type="identifier";
array.name=this.value;
$.get("<?=VBcmsGetSetting("websiteUrl")?>vbcms-admin/<?=$urlPath[2]?>/backTasks?checkIdentifierOrName="+encodeURIComponent(JSON.stringify(array)), function(data) {
let json = JSON.parse(data);
if(typeof json.error === 'undefined'){
if(json.used == false){
$("#badIdentifier").css("display", "none");
if(typeof $("#createLoadingScreenCreateBtn").attr("disabled") !== 'undefined' && $("#badName").css("display") == "none" && $("#showName").val() != ""){
$("#createLoadingScreenCreateBtn").removeAttr("disabled");
}
if(!isAlphanumeric($("#identifier").val())){
if(typeof $("#createLoadingScreenCreateBtn").attr("disabled") === 'undefined'){
$("#createLoadingScreenCreateBtn").attr("disabled", "");
}
}
} else {
$("#badIdentifier").html("<?=translate('alreadyUsed')?>");
$("#badIdentifier").css("display", "block");
if(typeof $("#createLoadingScreenCreateBtn").attr("disabled") === 'undefined'){
$("#createLoadingScreenCreateBtn").attr("disabled", "");
}
}
} else {
$("#badIdentifier").html(json.error);
$("#badIdentifier").css("display", "block");
if(typeof $("#createLoadingScreenCreateBtn").attr("disabled") === 'undefined'){
$("#createLoadingScreenCreateBtn").attr("disabled", "");
}
}
})
});
function createLoadingScreen(){
$.post( "<?=VBcmsGetSetting("websiteUrl")?>vbcms-admin/<?=$urlPath[2]?>/backTasks?createLoadingScreen", $( "#createLoadingScreenForm" ).serialize() )
.done(function( data ) {
if(data == ""){
window.location.href = "<?=VBcmsGetSetting("websiteUrl")?>vbcms-admin/<?=$urlPath[2]?>/edit?id="+$("#identifier").val();
} else {
SnackBar({
message: data,
status: "danger",
timeout: false
});
}
});
}
function isAlphanumeric(text){
var letterNumber = /^[0-9a-zA-Z-\-]+$/;
if(text.match(letterNumber)){
return true;
}else{
return false;
}
}
</script>
</div>
\ No newline at end of file
<?php
if(isset($_GET['id'])){
$loadingScreenIdentifier = $_GET['id'];
} else {
$redirectToList = true;
}
?>
<!-- Contenu -->
<div class="page-content d-flex flex-column" leftSidebar="240" rightSidebar="0" style="height:calc(100% - 60px); padding: 0!important;">
<div style="padding: 30px 50px; background-color:#3e3e3e;">
<div class="d-flex text-white">
<div style="margin-right: 50px;">
<h4><?=translate("commands")?></h4>
<div class="d-flex">
<button type="button" class="btn btn-brown btn-sm flex-fill"><?=translate("loadingscreens_openEditor")?></button>
<a href="<?=VBcmsGetSetting("websiteUrl")?><?=$this->clientAccess?>/<?=$loadingScreenIdentifier?>" class="btn btn-brown btn-sm mx-2 flex-fill"><?=translate("visualize")?></a>
<button type="button" class="btn btn-danger btn-sm flex-fill"><i class="fas fa-trash-alt"></i></button>
</div>
<h4 style="margin-top: 50px;"><?=translate("modifyProperties")?></h4>
<div class="form-group">
<label><?=translate("theme")?></label>
<select class="form-control form-control-sm" id="themeSelection">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
<div class="form-group">
<label><?=translate("loadingscreens_previewResolution")?></label>
<select class="form-control form-control-sm" id="previewResolution">
<option value='{"width":2560,"height":1440}'>2560 x 1440</option>
<option value='{"width":1920,"height":1080}' selected>1920 x 1080</option>
<option value='{"width":1366,"height":768}'>1366 x 768</option>
<option value='{"width":1280,"height":720}'>1280 x 720</option>
</select>
</div>
</div>
<div class="flex-grow-1 ">
<h4>Prévisualisation</h4>
<div id="loadingScreenPreview" class="rounded" style="background-image: url('https://api.apiflash.com/v1/urltoimage?access_key=65e037cb81b44087ba537b58dd19e4ff&format=jpeg&quality=80&response_type=image&url=<?php echo urlencode(VBcmsGetSetting("websiteUrl").$this->clientAccess.'/'.$loadingScreenIdentifier.'?preview'); ?>&width=1920&height=1080');"></div>
</div>
</div>
</div>
<div style="padding: 30px 50px;">
<h3><?=translate("loadingscreens_create")?></h3>
<p><?=translate("loadingscreens_createPhrase")?></p>
<div class="d-flex flex-column" id="page-content">
<div class="d-flex flex-wrap">
<div class="ld-card border rounded mx-1 my-1" style="background-image: url('https://sofianelasri.mtxserv.com/vbcms-content/uploads/stayonline.jpg');">
<div class="ld-card-content p-2">
<span><strong>Un super loading screen</strong></span>
<a href="#" class="btn btn-sm btn-brown float-right">Modifier</a>
</div>
</div>
<div class="ld-card border rounded mx-1 my-1" style="background-image: url('https://sofianelasri.mtxserv.com/vbcms-content/uploads/doubleload.jpg');">
<div class="ld-card-content p-2">
<span><strong>Un super loading screen</strong></span>
<a href="#" class="btn btn-sm btn-brown float-right">Modifier</a>
</div>
</div>
<div class="ld-card border rounded mx-1 my-1" style="background-image: url('https://sofianelasri.mtxserv.com/vbcms-content/uploads/themeTopImage.jpg');">
<div class="ld-card-content p-2">
<span><strong>Un super loading screen</strong></span>
<a href="#" class="btn btn-sm btn-brown float-right">Modifier</a>
</div>
</div>
<div class="ld-card border rounded mx-1 my-1" style="background-image: url('https://sofianelasri.mtxserv.com/vbcms-content/uploads/scp2.jpg');">
<div class="ld-card-content p-2">
<span><strong>Un super loading screen</strong></span>
<a href="#" class="btn btn-sm btn-brown float-right">Modifier</a>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$( document ).ready(function() {
<?php
if(isset($redirectToList)){
echo 'window.location.href = "'.VBcmsGetSetting("websiteUrl").'vbcms-admin/'.$urlPath[2].'/browse";';
}
?>
resizePreview();
});
$( window ).resize(function() {
resizePreview();
});
function resizePreview(){
$('#loadingScreenPreview').css("height",$('#loadingScreenPreview').width() / (16/9));
}
document.getElementById('previewResolution').addEventListener('change', function (evt) {
let newRes = JSON.parse(this.value);
let previousUrl = $("#loadingScreenPreview").css("background-image");
let previewUrl = new URL(previousUrl.substring(5, previousUrl.length - 2));
previewUrl.searchParams.set('width', newRes.width);
previewUrl.searchParams.set('height', newRes.height);
$("#loadingScreenPreview").css("background-image", 'url("'+previewUrl.toString()+'")');
});
</script>
</div>
\ No newline at end of file
.ld-card{
position: relative;
width: 27em;
height: 15em;
background-color: #dadada;
overflow: hidden;
background-size: cover;
}
.ld-card-content{
position: absolute;
width: 100%;
bottom: 0;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75));
color: white;
}
#loadingScreenPreview{
position: relative;
width: 100%;
background-size: cover;
}
\ No newline at end of file
vbcms-content/extensions/vbcms-loadingscreens/extension-logo.jpg

1.6 KiB

{
"workshopId" : "",
"requiredModules" : ["vbcms-filemanager"],
"type" : "module",
"name": "vbcms-loadingscreens",
"showname": "Créateur d'écrans de chargement",
"version": "1.0",
"compatible": "48",
"author": "1",
"description": "Permet de créer des écrans de chargement. :D ",
"clientAccess": "loadingscreens",
"adminAccess": "loadingscreens",
"permissions": ""
}
\ No newline at end of file
<?php
// Traduction gestionnaire de fichiers
$translation["loadingscreens"] = "Écrans de chargements";
$translation["loadingscreens_list"] = "Liste des écrans de chargements";
$translation["loadingscreens_create"] = "Créer un écran de chargement";
$translation["loadingscreens_listPhrase"] = "Voici la liste des écrans de chargements actuellment créés.";
$translation["loadingscreens_createPhrase"] = "Ici tu peux créer un écran de chargement comme bon te semble! :D";
$translation["loadingscreens_previewResolution"] = "Résolution de la prévisualisation";
$translation["loadingscreens_giveAName"] = "Donnez un nom pour en créer un.";
$translation["loadingscreens_createLegendIdentifier"] = "Sera utilisé pour accéder à l'écran de chargement.<br>Doit être en alphanumérique!";
$translation["loadingscreens_openEditor"] = "Ouvrir l'éditeur";
$translation["sample"] = "sample";
$translation["sample"] = "sample";
$translation["sample"] = "sample";
$translation["sample"] = "sample";
$translation["sample"] = "sample";
$translation["sample"] = "sample";
$translation["sample"] = "sample";
$translation["sample"] = "sample";
$translation["sample"] = "sample";
$translation["sample"] = "sample";
\ No newline at end of file
<?php
if(isset($initCall)&&!empty($initCall)){
if($initCall[0]=="enable"){
adminNavbarAddCategory($name, "loadingscreens");
//adminNavbarAddItem($name, "fas fa-plus-circle", "create", "/create");
adminNavbarAddItem($name, "fas fa-list", "list", "/browse");
adminNavbarAddItem($name, "fas fa-brush", "themes", "/themes");
// On va créer les tables
if(!tableExist("vbcmsLoadingScreens_list")) $bdd->query("CREATE TABLE `vbcmsLoadingScreens_list` ( `identifier` VARCHAR(128) NOT NULL , `visibility` INT NOT NULL , `sequenceId` INT NULL DEFAULT NULL , `showName` VARCHAR(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL , PRIMARY KEY (`identifier`)) ENGINE = InnoDB;");
if(!tableExist("vbcmsLoadingScreens_themes")) $bdd->query("CREATE TABLE `vbcmsLoadingScreens_themes` ( `id` INT NOT NULL AUTO_INCREMENT , `name` VARCHAR(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB;");
if(!tableExist("vbcmsLoadingScreens_themesData")) $bdd->query("CREATE TABLE `vbcmsLoadingScreens_themesData` ( `sequenceId` INT NOT NULL , `dataId` INT NOT NULL , `parentId` INT NULL DEFAULT NULL , `type` VARCHAR(128) NOT NULL , `data` JSON NOT NULL , PRIMARY KEY (`sequenceId`, `dataId`)) ENGINE = InnoDB;");
if(!tableExist("vbcmsLoadingScreens_tempThemesData")) $bdd->query("CREATE TABLE `vbcmsLoadingScreens_tempThemesData` ( `sequenceId` INT NOT NULL , `dataId` INT NOT NULL , `parentId` INT NULL DEFAULT NULL , `type` VARCHAR(128) NOT NULL , `data` JSON NOT NULL , `date` DATETIME NOT NULL , PRIMARY KEY (`sequenceId`, `dataId`)) ENGINE = InnoDB;");
if(!tableExist("vbcmsLoadingScreens_clientsData")) $bdd->query("CREATE TABLE `vbcmsLoadingScreens_clientsData` ( `identifier` VARCHAR(64) NOT NULL , `stringId` VARCHAR(32) NOT NULL , `data` JSON NOT NULL , PRIMARY KEY (`identifier`)) ENGINE = InnoDB;");
if(!tableExist("vbcmsLoadingScreens_previewTokens")) $bdd->query("CREATE TABLE `vbcmsLoadingScreens_previewTokens` ( `stringId` VARCHAR(32) NOT NULL , `lsId` INT NOT NULL , `expire` DATETIME NOT NULL , PRIMARY KEY (`stringId`)) ENGINE = InnoDB;");
} elseif($initCall[0]=="disable"){
} elseif($initCall[0]=="deleteData"){
$bdd->query('DROP TABLE vbcmsLoadingScreens_list');
$bdd->query('DROP TABLE vbcmsLoadingScreens_themes');
$bdd->query('DROP TABLE vbcmsLoadingScreens_themesData');
$bdd->query('DROP TABLE vbcmsLoadingScreens_tempThemesData');
$bdd->query('DROP TABLE vbcmsLoadingScreens_clientsData');
$bdd->query('DROP TABLE vbcmsLoadingScreens_previewTokens');
} elseif($initCall[0]=="getSettingsHTML"){
// $initCall[1] contient les paramètres
echo('<h5>C\'est bien la page du créateur d\'écrans de chargement</h5>');
}
}
\ No newline at end of file
<?php
if($type =="admin"){
$pageDepedencies = '<link href="'.VBcmsGetSetting("websiteUrl").'vbcms-content/extensions/'.$this->path.'/assets/css/admin.css" rel="stylesheet">';
switch($parameters[1]){
case 'browse':
if(verifyUserPermission($_SESSION['user_id'], $this->name, 'access-browse')){
$pageToInclude = $extensionFullPath."/admin/browse.php";
$this->extensionCreatePage($type, 0, $pageToInclude, translate("loadingscreens_list"), "", $pageDepedencies);
}
break;
case 'edit':
if(verifyUserPermission($_SESSION['user_id'], $this->name, 'canEdit')){
$pageToInclude = $extensionFullPath."/admin/edit.php";
$this->extensionCreatePage($type, 0, $pageToInclude, translate("loadingscreens_create"), "", $pageDepedencies);
}
break;
case 'backTasks':
if(isset($_GET['checkIdentifierOrName'])){
if(!empty($_GET['checkIdentifierOrName'])){
if(isJson(urldecode($_GET['checkIdentifierOrName']))){
$json = json_decode(urldecode($_GET['checkIdentifierOrName']), true);
if(isset($json['type']) && $json['type']=='identifier'){
$response = $bdd->prepare('SELECT * FROM `vbcmsLoadingScreens_list` WHERE identifier = ?');
$response->execute([$json['name']]);
$response=$response->fetch();
}elseif(isset($json['type']) && $json['type']=='showName'){
$response = $bdd->prepare('SELECT * FROM `vbcmsLoadingScreens_list` WHERE showName = ?');
$response->execute([$json['name']]);
$response=$response->fetch();
}else{
$return['error'] = translate('unknownType');
}
if(isset($response) && empty($response)){
$return['used'] = false;
} elseif(isset($response) && !empty($response)){
$return['used'] = true;
}
echo json_encode($return);
} else {
$return['error'] = translate('thisIsNotJSON');
echo json_encode($return);
}
} else {
$return['error'] = translate('noNameGiven');
echo json_encode($return);
}
} elseif(isset($_GET["createLoadingScreen"])){
if(isset($_POST)&&!empty($_POST)){
$query = $bdd->prepare('INSERT INTO `vbcmsLoadingScreens_list` (`identifier`, `visibility`, `sequenceId`, `showName`) VALUES (?, 1, NULL, ?)');
$query->execute([$_POST['identifier'], $_POST['showName']]);
} else {
echo translate('noPostData');
}
} elseif(isset($_GET)&&!empty($_GET)){
$return['error'] = "Commande \"".array_key_first($_GET)."(".$_GET[array_key_first($_GET)].")\" non reconnue.";
echo json_encode($return);
} else {
$return['error'] = translate('noCommandSpecified');
echo json_encode($return);
}
break;
}
}
\ No newline at end of file
A COLLER POUR LA CREATION DES TABLES
CREATE TABLE `vbcms-test`.`vbcmsWebSys_blogCategories` ( `id` INT NOT NULL AUTO_INCREMENT , `slug` VARCHAR(128) NOT NULL , `showName` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL , `childOf` INT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS `vbcms-blogDrafts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`randId` varchar(4) COLLATE utf8mb4_unicode_ci NOT NULL,
`categoryId` int(11) DEFAULT NULL,
`authorId` bigint(255) NOT NULL,
`slug` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL,
`title` text COLLATE utf8mb4_unicode_ci NOT NULL,
`subTitle` text COLLATE utf8_unicode_ci NOT NULL,
`content` text COLLATE utf8mb4_unicode_ci NOT NULL,
`headerImage` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
`writtenOn` datetime NOT NULL,
`modifiedOn` datetime NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`autosave` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `vbcms-blogPosts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`categoryId` int(11) DEFAULT NULL,
`authorId` bigint(255) NOT NULL,
`slug` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`title` text COLLATE utf8_unicode_ci NOT NULL,
`subTitle` text COLLATE utf8_unicode_ci NOT NULL,
`content` text COLLATE utf8_unicode_ci NOT NULL,
`headerImage` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`writtenOn` datetime NOT NULL,
`modifiedOn` datetime NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`views` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPACT;
\ No newline at end of file
vbcms-content/extensions/vbcms-websiteSystem/extension-logo.jpg

1.81 KiB

{
"workshopId" : "",
"requiredModules" : ["vbcms-filemanager"],
"type" : "module",
"name": "vbcms-websiteSystem",
"showname": "Système de site internet",
"version": "1.0",
"compatible": "48",
"author": "1",
"description": "Il s'agit du système de site internet inclu avec VBcms.",
"clientAccess": "",
"adminAccess": "website",
"permissions": ""
}
\ No newline at end of file
<?php
if(isset($initCall)&&!empty($initCall)){
if($initCall[0]=="enable"){
} elseif($initCall[0]=="disable"){
} elseif($initCall[0]=="deleteData"){
} elseif($initCall[0]=="getSettingsHTML"){
// $initCall[1] contient les paramètres
echo('<h5>C\'est bien la page du module de site internet</h5>');
}
}
\ No newline at end of file
<?php
if($type =="admin"){
if($parameters[1]=="test"){
echo "Inscription de code dans vbcmsWebSys_blogPosts<br>";
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment