Modified:
trunk/config/config.ini
trunk/include/auth/auth.php
trunk/include/functions.php
trunk/include/include_auth.php
trunk/include/init.php
trunk/include/jquery/jquery.conf.js.tpl
trunk/include/jquery/jquery.functions.js.tpl
trunk/include/sql_queries.php
trunk/index.php
Log:
start pdf change
Modified: trunk/config/config.ini
==============================================================================
--- trunk/config/config.ini (original)
+++ trunk/config/config.ini Tue Feb 3 17:27:10 2009
@@ -41,7 +41,7 @@
email.secure =
email.ack = false
-version.name = 200810 unstable
+version.name = 2009 Beta 2 unstable
version.series = Flying Doormat
debug.level = All
Modified: trunk/include/auth/auth.php
==============================================================================
--- trunk/include/auth/auth.php (original)
+++ trunk/include/auth/auth.php Tue Feb 3 17:27:10 2009
@@ -1,7 +1,5 @@
<?php
-// like i said, we must never forget to start the session
-// is the one accessing this page logged in or not?
if (!isset($auth_session->id))
{
if ($_GET['module'] !== "auth")
Modified: trunk/include/functions.php
==============================================================================
--- trunk/include/functions.php (original)
+++ trunk/include/functions.php Tue Feb 3 17:27:10 2009
@@ -38,11 +38,14 @@
}
function getLogo($biller) {
+
+ $url = getURL();
+
if(!empty($biller['logo'])) {
- return "./templates/invoices/logos/$biller[logo]";
+ return $url."/templates/invoices/logos/$biller[logo]";
}
else {
- return "./templates/invoices/logos/_default_blank_logo.png";
+ return $url."/templates/invoices/logos/_default_blank_logo.png";
}
}
Modified: trunk/include/include_auth.php
==============================================================================
--- trunk/include/include_auth.php (original)
+++ trunk/include/include_auth.php Tue Feb 3 17:27:10 2009
@@ -1,27 +1,47 @@
<?php
-
+
+
+//if user logged into Simple Invoices with auth off then auth turned on -
id via fake_auth and kill session
+if ( ($config->authentication->enabled == 1 ) AND
($auth_session->fake_auth =="1" ) )
+{
+ Zend_Session::start();
+ Zend_Session::destroy(true);
+ header('Location: .');
+}
+
// 1 = config->auth->enabled == "true"
if ($config->authentication->enabled == 1 ) {
+
+
if (isset($_GET['location']) && $_GET['location'] == 'pdf' ) {
- include('../include/auth/auth.php');
+ include('./include/auth/auth.php');
+
+ //TODO - this needs to be fixed !!
+ if ($auth_session->domain_id == null)
+ {
+ $auth_session->domain_id = "1";
+ }
+
}
else {
include('./include/auth/auth.php');
}
}
-
-/*If auth not on - use default domain and user id of 1*/
-if ($config->authentication->enabled != 1 )
-{
- //Zend_Session::start();
-
- /*
- * chuck the user details sans password into the Zend_auth session
- */
- //$authNamespace = new Zend_Session_Namespace('Zend_Auth');
+
+/*If auth not on - use default domain and user id of 1*/
+if ($config->authentication->enabled != 1 )
+{
+
+ /*
+ * chuck the user details sans password into the Zend_auth session
+ */
+
$auth_session->id = "1";
$auth_session->domain_id = "1";
$auth_session->email = "de...@simpleinvoices.org";
-}
+ //fake_auth is identifier to say that user logged in with auth off
+ $auth_session->fake_auth = "1";
+
+}
?>
Modified: trunk/include/init.php
==============================================================================
--- trunk/include/init.php (original)
+++ trunk/include/init.php Tue Feb 3 17:27:10 2009
@@ -3,10 +3,12 @@
/*
* Zend framework init - start
*/
-set_include_path(get_include_path() . PATH_SEPARATOR . "./library/");
+set_include_path(get_include_path() . PATH_SEPARATOR . "./library/");
+set_include_path(get_include_path() . PATH_SEPARATOR . "./library/pdf");
set_include_path(get_include_path() .
PATH_SEPARATOR . "./library/ZendFramework/1.7.2/");
require_once 'Zend/Loader.php';
-Zend_Loader::loadClass('Zend_Db_Table');
+
+Zend_Loader::loadClass('Zend_Db_Table');
Zend_Loader::loadClass('Zend_Date');
Zend_Loader::loadClass('Zend_Debug');
Zend_Loader::loadClass('Zend_Auth');
@@ -21,10 +23,14 @@
Zend_Loader::loadClass('Zend_Log');
Zend_Loader::loadClass('Zend_Log_Writer_Stream');
-//session_start();
-Zend_Session::start();
-$auth_session = new Zend_Session_Namespace('Zend_Auth');
-
+//Zend_Loader::registerAutoload();
+
+
+
+//session_start();
+Zend_Session::start();
+$auth_session = new Zend_Session_Namespace('Zend_Auth');
+
/*
* Zend framework init - end
@@ -76,8 +82,8 @@
//include_once("./include/sql_patches.php");
include_once("./include/sql_queries.php");
-
-$smarty->register_modifier("siLocal_number", array("siLocal", "number"));
+
+$smarty->register_modifier("siLocal_number", array("siLocal", "number"));
$smarty->register_modifier("siLocal_number_trim",
array("siLocal", "number_trim"));
include_once('./include/language.php');
@@ -103,4 +109,19 @@
$early_exit = array();
$early_exit[] = "auth_login";
$early_exit[] = "auth_logout";
-//$early_exit[] = "export_pdf";
+$early_exit[] = "export_pdf";
+$early_exit[] = "invoice_template";
+
+
+switch ($module)
+{
+ case "export" :
+ $smarty_output = "fetch";
+ break;
+ default :
+ $smarty_output = "display";
+ break;
+}
+
+//get the url - used for templates / pdf
+$siUrl = getURL();
Modified: trunk/include/jquery/jquery.conf.js.tpl
==============================================================================
--- trunk/include/jquery/jquery.conf.js.tpl (original)
+++ trunk/include/jquery/jquery.conf.js.tpl Tue Feb 3 17:27:10 2009
@@ -125,6 +125,7 @@
//autoFill($(".note"), "Description");
});
+
//calc number of line items
$(".invoice_save").click(function () {
$('#gmail_loading').show();
@@ -155,6 +156,27 @@
});
$(".note").css({ color: "#b2adad" });
+
+
+ //Export dialog window - onclick export button close window
+
+ $(".export_window").livequery('click',function () {
+ $('.ui-dialog-titlebar-close').trigger('click');
+ });
+
+/*
+ $(".export_window").click(function () {
+ $('.ui-dialog-titlebar-close').trigger('click');
+ });
+*/
+ /*
+ * Product Change - updates line item with product price info
+ */
+ $(".invoice_export_dialog").livequery('click',function () {
+ var $row_number = $(this).attr("rel");
+ siLog('debug',"{/literal}$config->export->spreadsheet{literal}");
+
export_invoice($row_number, '{/literal}{$config->export->spreadsheet}{literal}','{/literal}{$config->export->wordprocessor}{literal}');
+ });
});
Modified: trunk/include/jquery/jquery.functions.js.tpl
==============================================================================
--- trunk/include/jquery/jquery.functions.js.tpl (original)
+++ trunk/include/jquery/jquery.functions.js.tpl Tue Feb 3 17:27:10 2009
@@ -184,16 +184,16 @@
$("#export_dialog").show();
+ siLog('debug','export_dialog_show');
$(".export_pdf").attr({
- href: "index.php?module=export&view=pdf&id="+row_number,
- onClick: "dialog('destroy')"
+ //href: "index.php?module=export&view=pdf&id="+row_number
+
href: "index.php?module=invoices&view=template&id="+row_number+"&action=view&location=pdf"
});
$(".export_doc").attr({
href: "index.php?module=invoices&view=template&id="+row_number+"&action=view&location=print&export="+wordprocessor
});
$(".export_xls").attr({
-
href: "index.php?module=invoices&view=template&id="+row_number+"&action=view&location=print&export="+spreadsheet,
- onclick: "$().dialog('destroy')"
+
href: "index.php?module=invoices&view=template&id="+row_number+"&action=view&location=print&export="+spreadsheet
});
$("#export_dialog").dialog({
modal: true,
@@ -206,15 +206,12 @@
opacity: 0.5,
background: "black"
},
- close: function() { $(this).dialog("destroy")}
+ close: function() { $(this).dialog("destroy")}
});
}
-
- function dialog_close(){
- $(this).dialog("destroy");
- }
+
/*
* Function: invoice_save_remove_autofill
* Purpose: remove the autofilled text in the line items ntoes box
Modified: trunk/include/sql_queries.php
==============================================================================
--- trunk/include/sql_queries.php (original)
+++ trunk/include/sql_queries.php Tue Feb 3 17:27:10 2009
@@ -2300,3 +2300,122 @@
//Returns number of patches applied
return $patches['count'];
}
+
+
+function pdfThis($html)
+{
+
+ global $config;
+
+// set_include_path("../../../../library/pdf/");
+ require_once('./library/pdf/config.inc.php');
+ require_once('./library/pdf/pipeline.factory.class.php');
+ require_once('./library/pdf/pipeline.class.php');
+ parse_config_file('./library/pdf/html2ps.config');
+
+ require_once("./include/init.php"); // for getInvoice() and
getPreference()
+ $invoice_id = $_GET['id'];
+ $invoice = getInvoice($invoice_id);
+
+ $preference = getPreference($invoice['preference_id']);
+ $pdfname = trim($preference['pref_inv_wording']) . $invoice_id;
+
+ error_reporting(E_ALL);
+ ini_set("display_errors","1");
+ @set_time_limit(10000);
+
+ /**
+ * Runs the HTML->PDF conversion with default settings
+ *
+ * Warning: if you have any files (like CSS stylesheets and/or images
referenced by this file,
+ * use absolute links (like http://my.host/image.gif).
+ *
+ * @param $path_to_html String path to source html file.
+ * @param $path_to_pdf String path to file to save generated PDF to.
+ */
+ function convert_to_pdf($html_to_pdf, $pdfname) {
+
+ global $config;
+ /**
+ * Handles the saving generated PDF to user-defined output file on
server
+ */
+
+ class MyFetcherLocalFile extends Fetcher {
+ var $_content;
+
+ function MyFetcherLocalFile($html_to_pdf) {
+ //$this->_content = file_get_contents($file);
+ $this->_content = $html_to_pdf;
+ }
+
+ function get_data($dummy1) {
+ return new FetchedDataURL($this->_content, array(), "");
+ }
+
+ function get_base_url() {
+ return "";
+ }
+ }
+
+ $pipeline = PipelineFactory::create_default_pipeline("", // Attempt to
auto-detect encoding
+ "");
+
+ // Override HTML source
+ $pipeline->fetchers[] = new MyFetcherLocalFile($html_to_pdf);
+
+ $baseurl = "";
+ $media = Media::predefined("A4");
+ $media->set_landscape(false);
+
+ global $g_config;
+ $g_config = array(
+ 'cssmedia' => 'screen',
+ 'renderimages' => true,
+ 'renderlinks' => true,
+ 'renderfields' => true,
+ 'renderforms' => false,
+ 'mode' => 'html',
+ 'encoding' => '',
+ 'debugbox' => false,
+ 'pdfversion' => '1.4',
+
+ 'process_mode' => 'single',
+ 'output' => 1,
+ 'location' => 'pdf',
+ 'pixels' => $config->export->pdf->screensize,
+ 'media' => $config->export->pdf->papersize,
+ 'margins' => array(
+ 'left' =>
$config->export->pdf->leftmargin,
+ 'right' =>
$config->export->pdf->rightmargin,
+ 'top' =>
$config->export->pdf->topmargin,
+ 'bottom' =>
$config->export->pdf->bottommargin,
+ ),
+ 'transparency_workaround' => 1,
+ 'imagequality_workaround' => 1,
+
+ 'draw_page_border' => false
+ );
+
+ $media->set_margins($g_config['margins']);
+ $media->set_pixels($config->export->pdf->screensize);
+
+/*
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
+
+header("Location: $myloc");
+*/
+ global $g_px_scale;
+ $g_px_scale = mm2pt($media->width() - $media->margins['left'] -
$media->margins['right']) / $media->pixels;
+ global $g_pt_scale;
+ $g_pt_scale = $g_px_scale * 1.43;
+
+ $pipeline->configure($g_config);
+ $pipeline->data_filters[] = new DataFilterUTF8("");
+ $pipeline->destination = new DestinationDownload($pdfname);
+ $pipeline->process($baseurl, $media);
+ }
+
+ convert_to_pdf($html, $pdfname);
+
+}
Modified: trunk/index.php
==============================================================================
--- trunk/index.php (original)
+++ trunk/index.php Tue Feb 3 17:27:10 2009
@@ -55,7 +55,7 @@
*/
$file = isset($file)?$file: "home";
-
+
//if auth - make sure is valid session else skip
// Check for any unapplied SQL patches when going home
if (($module == "options") && ($view == "database_sqlpatches")) {
@@ -86,25 +86,25 @@
* dont include the header if requested file is an invoice template - for
print preview etc.. header is not needed
*/
if (($module == "invoices" ) && (strstr($view,"template"))) {
-
-
- /*
- * If extension is enabled load the extension php file for the module
- * Note: this system is probably slow - if you got a better method for
handling extensions let me know
- */
+
+
+ /*
+ * If extension is enabled load the extension php file for the module
+ * Note: this system is probably slow - if you got a better method for
handling extensions let me know
+ */
$extensionInvoiceTemplateFile = 0;
foreach($config->extension as $extension)
- {
- /*
- * If extension is enabled then continue and include the requested file
for that extension if it exists
- */
- if($extension->enabled == "1")
- {
- //echo "Enabled:".$value['name']."<br><br>";
-
if(file_exists("./extensions/$extension->name/modules/invoices/template.php"))
{
-
-
include_once("./extensions/$extension->name/modules/invoices/template.php");
- $extensionInvoiceTemplateFile++;
+ {
+ /*
+ * If extension is enabled then continue and include the requested file
for that extension if it exists
+ */
+ if($extension->enabled == "1")
+ {
+ //echo "Enabled:".$value['name']."<br><br>";
+
if(file_exists("./extensions/$extension->name/modules/invoices/template.php"))
{
+
+
include_once("./extensions/$extension->name/modules/invoices/template.php");
+ $extensionInvoiceTemplateFile++;
}
}
}
@@ -157,16 +157,16 @@
$path = "$module/$view";
-
-/*
-* Prep the page - load the header stuff - start
-*/
-
- // To remove the js error due to multiple document.ready.function()
- // in jquery.datePicker.js, jquery.autocomplete.conf.js and
jquery.accordian.js
- // without instances in manage pages - Ap.Muthu
- /*
- * TODO: fix the javascript or move datapicker to extjs to fix this hack -
not nice
+
+/*
+* Prep the page - load the header stuff - start
+*/
+
+ // To remove the js error due to multiple document.ready.function()
+ // in jquery.datePicker.js, jquery.autocomplete.conf.js and
jquery.accordian.js
+ // without instances in manage pages - Ap.Muthu
+ /*
+ * TODO: fix the javascript or move datapicker to extjs to fix this hack -
not nice
*/
/*
@@ -192,130 +192,133 @@
*/
/*
-* Header - start
-*/
+* Header - start
+*/
if( !in_array($module."_".$view, $early_exit) )
{
- $extensionHeader = 0;
+ $extensionHeader = 0;
foreach($config->extension as $extension)
- {
- /*
- * If extension is enabled then continue and include the requested file
for that extension if it exists
- */
+ {
+ /*
+ * If extension is enabled then continue and include the requested file
for that extension if it exists
+ */
if($extension->enabled == "1")
- {
+ {
if(file_exists("./extensions/$extension->name/templates/default/header.tpl"))
- {
- $smarty ->
display("../extensions/$extension->name/templates/default/header.tpl");
- $extensionHeader++;
- }
- }
- }
- /*
- * If no extension php file for requested file load the normal php file
if it exists
- */
+ {
+ $smarty ->
$smarty_output("../extensions/$extension->name/templates/default/header.tpl");
+
+ $extensionHeader++;
+ }
+ }
+ }
+ /*
+ * If no extension php file for requested file load the normal php file
if it exists
+ */
if($extensionHeader == 0)
- {
- $smarty -> display("../templates/default/header.tpl");
- }
-
-}
-/*
-* Prep the page - load the header stuff - end
-*/
-
+ {
+ $smarty -> $smarty_output("../templates/default/header.tpl");
+ }
+
+}
+/*
+* Prep the page - load the header stuff - end
+*/
+
/*
* Include the php file for the requested page section - start
*/
-
- /*Local the requested php file for the module*/
- preg_match("/^[a-z|A-Z|_]+\/[a-z|A-Z|_]+/",$path,$res);
-
- if(isset($res[0]) && $res[0] == $path)
- {
- $file = $path;
- }
-
- /*
- * If extension is enabled load the extension php file for the module
- * Note: this system is probably slow - if you got a better method for
handling extensions let me know
- */
- $extensionPHPFile = 0;
- foreach($config->extension as $extension)
- {
- /*
- * If extension is enabled then continue and include the requested file
for that extension if it exists
- */
- if($extension->enabled == "1")
- {
-
-
- //echo "Enabled:".$value['name']."<br><br>";
- if(file_exists("./extensions/$extension->name/modules/$path.php")) {
-
- preg_match("/^[a-z|A-Z|_]+\/[a-z|A-Z|_]+/",$path,$res);
-
- if(isset($res[0]) && $res[0] == $path) {
- $file = $path;
- }
-
- include_once("./extensions/$extension->name/modules/$file.php");
- $extensionPHPFile++;
- }
- }
- }
- /*
- * If no extension php file for requested file load the normal php file
if it exists
- */
- if( ($extensionPHPFile == 0) AND (file_exists("./modules/$file.php")) )
- {
- include_once("./modules/$file.php");
- }
-
-/*
-* Include the php file for the requested page section - end
-*/
-
-/*
-* If extension is enabled load its post load javascript files - start
-* By Post load - i mean post of the .php so that it can used info from
the .php in the javascript
-* Note: this system is probably slow - if you got a better method for
handling extensions let me know
-*/
- $extensionPostLoadJquery = 0;
- foreach($config->extension as $extension)
- {
- /*
- * If extension is enabled then continue and include the requested file
for that extension if it exists
- */
- if($extension->enabled == "1")
- {
-
if(file_exists("./extensions/$extension->name/include/jquery/$extension->name.post_load.jquery.ext.js.tpl"))
{
- $smarty ->
display("../extensions/$extension->name/include/jquery/$extension->name.post_load.jquery.ext.js.tpl");
- }
- }
-
- }
- /*
- * If no extension php file for requested file load the normal php file if
it exists
- */
- if($extensionPostLoadJquery == 0)
- {
- $smarty -> display("../include/jquery/post_load.jquery.ext.js.tpl");
- }
-
-/*
-* If extension is enabled load its javascript files - end
-*/
-
-
+
+ /*Local the requested php file for the module*/
+ preg_match("/^[a-z|A-Z|_]+\/[a-z|A-Z|_]+/",$path,$res);
+
+ if(isset($res[0]) && $res[0] == $path)
+ {
+ $file = $path;
+ }
+ /*
+ * If extension is enabled load the extension php file for the module
+ * Note: this system is probably slow - if you got a better method for
handling extensions let me know
+ */
+ $extensionPHPFile = 0;
+ foreach($config->extension as $extension)
+ {
+ /*
+ * If extension is enabled then continue and include the requested file
for that extension if it exists
+ */
+ if($extension->enabled == "1")
+ {
+
+
+ //echo "Enabled:".$value['name']."<br><br>";
+ if(file_exists("./extensions/$extension->name/modules/$path.php")) {
+
+ preg_match("/^[a-z|A-Z|_]+\/[a-z|A-Z|_]+/",$path,$res);
+
+ if(isset($res[0]) && $res[0] == $path) {
+ $file = $path;
+ }
+
+ include_once("./extensions/$extension->name/modules/$file.php");
+ $extensionPHPFile++;
+ }
+ }
+ }
+ /*
+ * If no extension php file for requested file load the normal php file
if it exists
+ */
+ if( ($extensionPHPFile == 0) AND (file_exists("./modules/$file.php")) )
+ {
+ include_once("./modules/$file.php");
+ }
+
+/*
+* Include the php file for the requested page section - end
+*/
if($module == "export")
{
exit(0);
+
+
}
/*
+* If extension is enabled load its post load javascript files - start
+* By Post load - i mean post of the .php so that it can used info from
the .php in the javascript
+* Note: this system is probably slow - if you got a better method for
handling extensions let me know
+*/
+ $extensionPostLoadJquery = 0;
+ foreach($config->extension as $extension)
+ {
+ /*
+ * If extension is enabled then continue and include the requested file
for that extension if it exists
+ */
+ if($extension->enabled == "1")
+ {
+
if(file_exists("./extensions/$extension->name/include/jquery/$extension->name.post_load.jquery.ext.js.tpl"))
{
+ $smarty ->
$smarty_output("../extensions/$extension->name/include/jquery/$extension->name.post_load.jquery.ext.js.tpl");
+ }
+ }
+
+ }
+ /*
+ * If no extension php file for requested file load the normal php file if
it exists
+ */
+ if($extensionPostLoadJquery == 0)
+ {
+ $smarty ->
$smarty_output("../include/jquery/post_load.jquery.ext.js.tpl");
+ }
+
+/*
+* If extension is enabled load its javascript files - end
+*/
+
+
+
+
+/*
* Menu : If extension has custom menu use it else use default - start
*/
@@ -331,21 +334,21 @@
{
if(file_exists("./extensions/$extension->name/templates/default/menu.tpl"))
{
- $smarty ->
display("../extensions/$extension->name/templates/default/menu.tpl");
+ $smarty ->
$smarty_output("../extensions/$extension->name/templates/default/menu.tpl");
$extensionMenu++;
}
- }
- }
- /*
- * If no extension php file for requested file load the normal php file
if it exists
- */
+ }
+ }
+ /*
+ * If no extension php file for requested file load the normal php file
if it exists
+ */
if($extensionMenu == "0")
{
- $smarty -> display("../templates/default/menu.tpl");
+ $smarty -> $smarty_output("../templates/default/menu.tpl");
}
- }
-/*
-* Menu : If extension has custom menu use it else use default - end
+ }
+/*
+* Menu : If extension has custom menu use it else use default - end
*/
@@ -363,20 +366,20 @@
{
if(file_exists("./extensions/$extension->name/templates/default/main.tpl"))
{
- $smarty ->
display("../extensions/$extension->name/templates/default/main.tpl");
+ $smarty ->
$smarty_output("../extensions/$extension->name/templates/default/main.tpl");
$extensionMain++;
}
- }
- }
- /*
- * If no extension php file for requested file load the normal php file
if it exists
- */
+ }
+ }
+ /*
+ * If no extension php file for requested file load the normal php file
if it exists
+ */
if($extensionMain == "0")
{
- $smarty -> display("../templates/default/main.tpl");
+ $smarty -> $smarty_output("../templates/default/main.tpl");
}
-/*
-* Main : If extension has custom menu use it else use default - end
+/*
+* Main : If extension has custom menu use it else use default - end
*/
@@ -418,7 +421,7 @@
}
$smarty->assign("path",$path);
- $smarty -> display("../".$tplDirectory."templates/default/$file.tpl");
+ $smarty ->
$smarty_output("../".$tplDirectory."templates/default/$file.tpl");
// If no smarty template - add message - onyl uncomment for dev -
commented out for release
if ($extensionTemplates == 0 )
@@ -436,28 +439,29 @@
if( !in_array($module."_".$view, $early_exit) )
{
$extensionFooter = 0;
- foreach($config->extension as $extension)
- {
- /*
- * If extension is enabled then continue and include the requested file
for that extension if it exists
- */
- if($extension->enabled == "1")
- {
-
if(file_exists("./extensions/$extension->name/templates/default/footer.tpl"))
- {
- $smarty ->
display("../extensions/$extension->name/templates/default/footer.tpl");
- $extensionFooter++;
- }
- }
- }
- /*
- * If no extension php file for requested file load the normal php file
if it exists
- */
- if($extensionFooter == 0)
- {
- $smarty -> display("../templates/default/footer.tpl");
- }
+ foreach($config->extension as $extension)
+ {
+ /*
+ * If extension is enabled then continue and include the requested file
for that extension if it exists
+ */
+ if($extension->enabled == "1")
+ {
+
if(file_exists("./extensions/$extension->name/templates/default/footer.tpl"))
+ {
+ $smarty ->
$smarty_output("../extensions/$extension->name/templates/default/footer.tpl");
+ $extensionFooter++;
+ }
+ }
+ }
+ /*
+ * If no extension php file for requested file load the normal php file
if it exists
+ */
+ if($extensionFooter == 0)
+ {
+ $smarty -> $smarty_output("../templates/default/footer.tpl");
+ }
+
}
-/*
-* Footer - end
+/*
+* Footer - end
*/