File manager - Edit - /home/missmand/public_html/learning/admin/forum/publierTheme.php
Back
<?php include '../lib/init.php'; Tool::verif_connect(); $themeId = Tool::getId($_GET['theme']); $sql = $bdd->query("SELECT * FROM forum_theme WHERE themeId = $themeId "); if($sql->rowCount() > 0){ $data = $sql->fetchObject(); $active = $data->themeEtat; $active = !$active; $sql = $bdd->exec("UPDATE forum_theme SET themeEtat = '$active' WHERE themeId = $themeId "); } if($active == 1) echo ('active'); else echo ('desactive'); ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings