/*************************************************************************** Jupiter Content System @ Jupiterportal.com Copyright (C) 2005 Cosmin Flavius (highstrike@gmail.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. More Info About The Licence At http://www.gnu.org/copyleft/gpl.html ****************************************************************************/ //----------------------------------------------------------------- // Filter Acces Rightes //----------------------------------------------------------------- if(!isset($is_webmaster)) { header("location: $PHP_SELF?i=2"); exit; } switch($a) { //----------------------------------------------------------------- // Install Blocks //----------------------------------------------------------------- case 1: //----------------------------------------------------------------- // Install the block //----------------------------------------------------------------- $db->insertRow("blocks",array('name' => ''.$add_block.'','used' => '0')); //----------------------------------------------------------------- // Redirect when finished //----------------------------------------------------------------- header("location: $PHP_SELF?n=modules/blocks&i=57"); break; //----------------------------------------------------------------- // Uninstall Blocks //----------------------------------------------------------------- case 2: //----------------------------------------------------------------- // Uninstall the block and remove from templates too //----------------------------------------------------------------- $checker = $db->getLine("SELECT * FROM blocks WHERE id = '$d'"); $db->deleteRow("blocks","id = '{$checker['id']}'"); $db->deleteRow("template","name = '{$checker['name']}'"); //----------------------------------------------------------------- // Redirect when finished //----------------------------------------------------------------- header("location: $PHP_SELF?n=modules/blocks&i=58"); break; //----------------------------------------------------------------- // Show list + form //----------------------------------------------------------------- default: //----------------------------------------------------------------- // Echo the back link //----------------------------------------------------------------- echo "
{$language['Admin name']} | ||
» {$language['Admin back']} |
= $language['Blocks view title'] ?> | ||
= $language['Blocks view desc'] ?> |