Login   Register  
PHP Classes
elePHPant
Icontem

File: efm/seleidioma.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jorge Prado  >  My Rad 4 PHP  >  efm/seleidioma.php  >  Download  
File: efm/seleidioma.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: My Rad 4 PHP
Generate PHP class from MySQL table
Author: By
Last change: update version 1.0
Date: 1 year ago
Size: 945 bytes
 

Contents

Class file image Download
<?php
    session_start
();
      if(!
file_exists(realpath(dirname(__FILE__).'/..').'/'."libs/smarty/Smarty.class.php"))
        
header("Location: ../config/erros.html");
      if(!
file_exists(realpath(dirname(__FILE__).'/..').'/'."libs/html2pdf/html2pdf.class.php"))
        
header("Location: ../config/erros.html");
    include(
"../config/idiomascfg.php");
    require(
"../libs/smarty/Smarty.class.php");
    if(isset(
$_POST["set"]))
    {
        
$_SESSION["idiomasel"]=$_POST["cboidioma"];
        
header("Location: configapp.php");
    }
    
$idio = new admin_idiomas();
    
$sma = new Smarty();
    
$sma->setTemplateDir('../templates/template');
    
$sma->setCompileDir('../templates/templates_c/');
    
$sma->setConfigDir('../templates/configs/');
    
$sma->setCacheDir('../templates/cache/');
    
$sma->assign("names"$idio->getidiomasnames());
    
$sma->assign("files"$idio->getidiomasfiles());
    
$sma->display("seleidioma.tpl");
?>