Skip to content

Instantly share code, notes, and snippets.

@Kolesias123
Created February 20, 2013 03:28
Show Gist options
  • Save Kolesias123/4992626 to your computer and use it in GitHub Desktop.
Save Kolesias123/4992626 to your computer and use it in GitHub Desktop.
<?
#####################################################
## BeatRock ##
#####################################################
## Framework avanzado de procesamiento para PHP. ##
#####################################################
## InfoSmart © 2013 Todos los derechos reservados. ##
## http://www.infosmart.mx/ ##
#####################################################
## http://beatrock.infosmart.mx/ ##
#####################################################
# Acción ilegal
if( !defined('BEATROCK') )
exit;
class Ctrl_index
{
static function index()
{
global $page;
$page['id'] = 'index';
$page['name'] = 'Inicio';
$page['lang'] = ( !empty($G['lang']) ) ? $G['lang'] : LANG;
$page['lang.sections'] = array('page.welcome');
}
static function about()
{
global $page;
$page['id'] = 'about';
$page['name'] = 'Acerca de nosotros';
}
static function register()
{
if( $error == 'carajo' )
MostrarErroroNoSeQueCarajo();
global $page;
$page['id'] = 'register';
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment