AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.80
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/public_html/lrsys_apps/gasch/application/plugins/module_default/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_apps/gasch/application/plugins/module_default/controllers/default.php
<?php

/*
    Modelo de exemplo.. Ajustar para o seu plugin
*/


_auth();
$dir = "module_default"; //diretório do plugin criado, dentro da pasta plugins
 
$ui->assign('_application_menu', $dir);
$ui->assign('_title', $_L['Default module'].' - '. $config['CompanyName']);
$action = $routes['2'];
$user = User::_info();
$ui->assign('user', $user);

switch ($action) {
    case 'list':
        //está lendo no exemplo da tabela de tags, se a mesma não possuir registros nao vai exibir nada
        $app = new ModuleApp();
        //passa o id no getone()
        $one=$app->getOne(1);
        $ui->assign('one', $one->text);
       
        $all=$app->all();
        $ui->assign('all', $all);
        
        
        $novo=$app->create();
        $novo->text="CRIADO VIA MODULO DEFAULT";
        $novo->type="MODULE DEAULT";
        $novo->save();
        $ui->assign('mensagem', $novo->text." (ID) ". $novo->id."<br/>");
        
        $ui->assign('_st', $_L['Default module']);
        $ui->assign('_include', $action);
        $ui->display('wrapper.tpl');
    break;
    
    case 'add':
        $ui->assign('_st', $_L['Default module'].' - '.$_L['Default add']);
        //adicionar o controller
        //require_once "controllers/".$action.".php";
        $ui->assign('_include', $action);
        $ui->display('wrapper.tpl');
        
        break;    
    
    case 'edit':
        $ui->assign('_st', $_L['Default module'].' - '.$_L['Default edit']);
        //adicionar o controller
        //require_once "controllers/".$action.".php";
        $ui->assign('_include', $action);
        $ui->display('wrapper.tpl');
        
        break;

	case 'bottombar':
	
                
            //ACIONA O BOTTOMBAR    
            //int, CAMPO INTEIRO
            //float com casa decimal
            //monetay com R$
                $bottomBar= array(
                    array('type'=>'monetary','info'=>$_L['Total receivable'],'value'=>'400.00'),
                    array('type'=>'monetary','info'=>$_L['Total received'],'value'=> '3054.54'),
                    array('type'=>'monetary','info'=>$_L['Total paid'],'value'=> '3454.54'),
                    array('type'=>'int','info'=>$_L['Total payable'],'value'=>4)
                );
                $ui->assign('bottomBar',$bottomBar);


		$ui->assign('_st', $_L['Default module'].' - '.$_L['Bottom bar example']);
		$ui->assign('_include', 'example_bottom_bar');
		$ui->display('wrapper.tpl');

		break;

	default:
        echo 'action not defined';
}
 

Anon7 - 2022
AnonSec Team