<?php
/*
MGB 0.6.x - OpenSource PHP and MySql Guestbook
Copyright (C) 2004 - 2011 Juergen Grueneisl - http://www.m-gb.org/
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.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// ============================ //
// load_templates.inc.php - 1.2 //
// ============================ //
//
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //
// get content of templates (general)
if (file_exists("templates/".$settings['template_path']."/general/header.tpl")) { $content_header = file_get_contents("templates/".$settings['template_path']."/general/header.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/general/header.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/general/copyright.tpl")) { $content_copyright = file_get_contents("templates/".$settings['template_path']."/general/copyright.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/general/copyright.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/general/footer.tpl")) { $content_footer = file_get_contents("templates/".$settings['template_path']."/general/footer.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/general/footer.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/general/errormessage.tpl")) { $content_errormessage = file_get_contents("templates/".$settings['template_path']."/general/errormessage.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/general/errormessage.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/general/captcha.tpl")) { $content_captcha = file_get_contents("templates/".$settings['template_path']."/general/captcha.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/general/captcha.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/general/scrolling_function.tpl")) { $content_scrolling_function = file_get_contents("templates/".$settings['template_path']."/general/scrolling_function.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/general/scrolling_function.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if ($site_name == "index.php")
{
// get content of templates (index.php)
if (file_exists("templates/".$settings['template_path']."/main/index_body.tpl")) { $content_index_body = file_get_contents("templates/".$settings['template_path']."/main/index_body.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/index_body.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/index_entry.tpl")) { $content_index_entry = file_get_contents("templates/".$settings['template_path']."/main/index_entry.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/index_entry.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/index_entry_city.tpl")) { $content_index_entry_city = file_get_contents("templates/".$settings['template_path']."/main/index_entry_city.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/index_entry_city.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/index_entry_message.tpl")) { $content_index_entry_message = file_get_contents("templates/".$settings['template_path']."/main/index_entry_message.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/index_entry_message.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/index_entry_email.tpl")) { $content_index_entry_email = file_get_contents("templates/".$settings['template_path']."/main/index_entry_email.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/index_entry_email.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/index_entry_gravatar.tpl")) { $content_index_entry_gravatar = file_get_contents("templates/".$settings['template_path']."/main/index_entry_gravatar.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/index_entry_gravatar.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/index_entry_hp.tpl")) { $content_index_entry_hp = file_get_contents("templates/".$settings['template_path']."/main/index_entry_hp.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/index_entry_hp.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/index_entry_icq.tpl")) { $content_index_entry_icq = file_get_contents("templates/".$settings['template_path']."/main/index_entry_icq.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/index_entry_icq.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/index_entry_aim.tpl")) { $content_index_entry_aim = file_get_contents("templates/".$settings['template_path']."/main/index_entry_aim.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/index_entry_aim.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/index_entry_msn.tpl")) { $content_index_entry_msn = file_get_contents("templates/".$settings['template_path']."/main/index_entry_msn.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/index_entry_msn.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/index_entry_comment.tpl")) { $content_index_entry_comment = file_get_contents("templates/".$settings['template_path']."/main/index_entry_comment.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/index_entry_comment.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
}
elseif ($site_name == "newentry.php")
{
// get content of templates (newentry.php)
if (file_exists("templates/".$settings['template_path']."/main/newentry_body.tpl")) { $content_newentry_body = file_get_contents("templates/".$settings['template_path']."/main/newentry_body.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/newentry_body.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/newentry_body_entry_success.tpl")) { $content_newentry_body_entry_success = file_get_contents("templates/".$settings['template_path']."/main/newentry_body_entry_success.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/newentry_success.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/newentry_smileys.tpl")) { $content_newentry_smileys = file_get_contents("templates/".$settings['template_path']."/main/newentry_smileys.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/newentry_smileys.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/newentry_bbcodes.tpl")) { $content_newentry_bbcodes = file_get_contents("templates/".$settings['template_path']."/main/newentry_bbcodes.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/newentry_bbcodes.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/newentry_bbcodes_img.tpl")) { $content_newentry_bbcodes_img = file_get_contents("templates/".$settings['template_path']."/main/newentry_bbcodes_img.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/newentry_bbcodes_img.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/newentry_bbcodes_flash.tpl")) { $content_newentry_bbcodes_flash = file_get_contents("templates/".$settings['template_path']."/main/newentry_bbcodes_flash.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/newentry_bbcodes_flash.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/newentry_user_notification.tpl")) { $content_newentry_user_notification = file_get_contents("templates/".$settings['template_path']."/main/newentry_user_notification.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/newentry_notification.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/newentry_user_show_email.tpl")) { $content_newentry_user_show_email = file_get_contents("templates/".$settings['template_path']."/main/newentry_user_show_email.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/newentry_email.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/newentry_user_accept_akismet_service.tpl")) { $content_newentry_user_accept_akismet_service = file_get_contents("templates/".$settings['template_path']."/main/newentry_user_accept_akismet_service.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/newentry_user_accept_akismet_service.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/newentry_preview.tpl")) { $content_newentry_preview = file_get_contents("templates/".$settings['template_path']."/main/newentry_preview.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/newentry_preview.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
}
elseif ($site_name == "email.php")
{
// get content of templates (email.php)
if (file_exists("templates/".$settings['template_path']."/main/email_body.tpl")) { $content_email_body = file_get_contents("templates/".$settings['template_path']."/main/email_body.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/email_body.tpl<br>"; }
if (file_exists("templates/".$settings['template_path']."/main/email_body_success.tpl")) { $content_email_body_success = file_get_contents("templates/".$settings['template_path']."/main/email_body_success.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/email_body_success.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
if (file_exists("templates/".$settings['template_path']."/main/email_user_accept_akismet_service.tpl")) { $content_email_user_accept_akismet_service = file_get_contents("templates/".$settings['template_path']."/main/email_user_accept_akismet_service.tpl"); } else { echo "<center><span class='errormessage'>(404) Missing file: templates/".$settings['template_path']."/main/email_user_accept_akismet_service.tpl - Incomplete template in use! If you are using your own template, and you updated to a newer version of MGB shortly, check changes in the main template 'mgbModern'.</span></center><br>"; }
}
?>