ERROR!'; echo '

The main configuration file does NOT exist!

'; echo '

Click '; html_link('./install/index.php', $text = 'here', $status = 'Install S9Y_Conf', $target = ''); echo 'to installS9Y_Conf.

'; } exit; } // Installed if(!defined('S9YCONF_INSTALLED')) { // If no headers are sent, send one if (!headers_sent()) { header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/install"); }else{ echo '
ERROR!
'; echo '

The main configuration file does NOT exist!

'; echo '

Click '; html_link('./install/index.php', $text = 'here', $status = 'Install S9Y_Conf', $target = ''); echo 'to installS9Y_Conf.

'; } exit; } debug_msg ("FILE: ".__FILE__,3); db_connect(); $action = ''; if (isset($_GET['action'])) { $action = $_GET['action']; } if (isset($_POST['action'])) { $action = $_POST['action']; } debug_msg("Action: ".$action,5); // Determine what action to take switch ($action) { case 'add': template_add(); break; case 'edit': if (isset($_GET['id'])) { $id = $_GET['id']; template_edit($id); } break; case 'delete': if (isset($_GET['id'])) { $id = $_GET['id']; template_delete($id); } break; case 'deleterecord': if (isset($_POST['id'])) { $id = $_POST['id']; template_deleterecord($id); } break; case 'insert': template_insert(); break; case 'update': if (isset($_POST['id'])) { $id = $_POST['id']; template_update($id); } break; default : list_templates(); break; } //end switch exit(0); /* template_deleterecord($id = '') Delete a Blog Data record (no recovery) */ function template_deleterecord($id = '') { debug_msg ("FUNCTION: ".__FUNCTION__,4); db_delete_templates($id); // If no headers are sent, send one if (!headers_sent()) { header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/template.php"); exit; } } // end function template_deleterecord($id = '') /* template_delete($id = '') Delete a Template Data record (last chance) */ function template_delete($id = '') { debug_msg ("FUNCTION: ".__FUNCTION__,3); html_header("Delete Template Data"); $result = db_read_templates($id); $name = $result['name']; $description=$result['description']; $template = $result['template']; ?>

Delete Template




Really DELETE this record ?

Edit Template


Edit Template


Add Template


Add Template


Add Template


Edit Template


'.$message.'
'; } ?>
Name :
Description :
Template :


Along with template variables you have created you can use these variables in your template, which will be replaced with data you have entered for individual blogs, and also this template:-

Variable Description Example
{NOW} replaced with the system time as an RFC 2822 formatted date
{S9YCONF} replaced with this programs name and version number
{BLOGID} replaced with the numeric system id of the blog 12
{BLOGNAME} replaced with the blog name entered in the blog data Test S9Y installation
{BLOGPATH} replaced with the blog path entered in the blog data /home/user1/public_html/blog
{BLOGUSER} replaced with the local user entered in the blog data user1
{BLOGURL} replaced with the blog url entered in the blog data http://myhost.foo.bar/~user1/blog/
{TPLID} replaced with the numeric system id of the template 7
{TPLNAME} replaced with the template name entered in the template data Apache
{TPLDESC} replaced with the template description entered in the template data Suggested S9Y Apache configuration
0) { html_header("List Templates"); ?>

Template Data


Name Description
  Edit     Delete  

Add Add new template
'.$message.'
'; } ?>
Name :
Description :
Template :