lacovic
19/04/2018, 10:42 AM
Web muito boa. Peguei de outro fórum:
1860
[Only registered and activated users can see links]!rFM1HI6T!OzA7rOFG3HJGqgf3D-rn7A
Exemplo para adicionar nova página de visualização: Create: controller.newpage.php dentro de application / controller / e colar o código abaixo. uso: domain.com/newpage
<?php
/** Decrypted by MyHeart(RZ) **/
class newpage extends controller
{
protected $vars = array();
protected $errors = array();
public function __construct()
{
parent::__construct();
$this->load->lib(array('web_db', 'db'), array(HOST, USER, PASS, WEB_DB));
$this->load->lib('session', array('DmNCMS'));
$this->session->checkSession();
$this->load->lib('translation');
$this->translation->load_translation($_COOKIE['dmn_language']);
$this->load->helper('meta');
$this->load->helper('website');
$this->load->helper('breadcrumbs', array($this->request));
}
public function index()
{
/** Example Variables**/
$this->vars['test'] = 'test variable'; /*USAGE: <?php echo $test; ?> */
$this->load->view($this->config->config_entry('main|template') . DS . 'about' . DS . 'view.about', $this->vars);
}
public function page2() /*USAGE: [Only registered and activated users can see links] */
{
$this->load->view($this->config->config_entry('main|template') . DS . 'about' . DS . 'view.stats');
}
public function page3() /*USAGE: [Only registered and activated users can see links] */
{
$this->load->view($this->config->config_entry('main|template') . DS . 'about' . DS . 'view.stats');
}
}
?>
Mais exemplos: descriptografados de dmn 1.1.8
controlller.guides.php
<?php
/** Decrypted by MyHeart(RZ) **/
class guides extends controller
{
protected $vars = array();
protected $errors = array();
public function __construct()
{
parent::__construct();
$this->load->helper('website');
$this->load->lib('session', array('DmNCMS'));
$this->session->checkSession();
$this->load->model('guides');
$this->load->helper('breadcrumbs', array($this->request));
$this->load->helper('meta');
$this->load->lib('fb');
}
public function index()
{
$this->vars['guides'] = $this->Mguides->load_guides();
$this->load->view($this->config->config_entry('main|template') . DS . 'guides' . DS . 'view.guides', $this->vars);
}
public function read($title, $id)
{
if (is_numeric($id)) {
$this->vars['guide'] = $this->Mguides->load_guide_by_id($id);
if (!$this->vars['guide']) {
$this->vars['error'] = _('News article not found.');
}
}
else {
$this->vars['error'] = _('News article not found.');
}
$this->load->view($this->config->config_entry('main|template') . DS . 'guides' . DS . 'view.read_guide', $this->vars);
}
}
?>
model.guides.php
<?php
/** Decrypted by MyHeart(RZ) **/
class Mguides extends model
{
protected $guides = array();
public function __contruct()
{
parent::__construct();
}
public function load_guides()
{
$lang = $_COOKIE["dmn_language"];
return $this->website->connect_db('web')->query('SELECT id, title FROM DmN_Guides WHERE lang = \'' . $this->website->connect_db('web')->sanitize_var($lang) . '\' ORDER BY date DESC')->fetch_all();
}
public function load_guide_by_id($id)
{
$stmt = $this->website->connect_db('web')->prepare('SELECT id, title, text, date FROM DmN_Guides WHERE id = :id');
$stmt->execute(array(':id' => $id));
return $stmt->fetch();
}
}
?>
Créditos:
MyHeart (Decrypted and cracked)
1860
[Only registered and activated users can see links]!rFM1HI6T!OzA7rOFG3HJGqgf3D-rn7A
Exemplo para adicionar nova página de visualização: Create: controller.newpage.php dentro de application / controller / e colar o código abaixo. uso: domain.com/newpage
<?php
/** Decrypted by MyHeart(RZ) **/
class newpage extends controller
{
protected $vars = array();
protected $errors = array();
public function __construct()
{
parent::__construct();
$this->load->lib(array('web_db', 'db'), array(HOST, USER, PASS, WEB_DB));
$this->load->lib('session', array('DmNCMS'));
$this->session->checkSession();
$this->load->lib('translation');
$this->translation->load_translation($_COOKIE['dmn_language']);
$this->load->helper('meta');
$this->load->helper('website');
$this->load->helper('breadcrumbs', array($this->request));
}
public function index()
{
/** Example Variables**/
$this->vars['test'] = 'test variable'; /*USAGE: <?php echo $test; ?> */
$this->load->view($this->config->config_entry('main|template') . DS . 'about' . DS . 'view.about', $this->vars);
}
public function page2() /*USAGE: [Only registered and activated users can see links] */
{
$this->load->view($this->config->config_entry('main|template') . DS . 'about' . DS . 'view.stats');
}
public function page3() /*USAGE: [Only registered and activated users can see links] */
{
$this->load->view($this->config->config_entry('main|template') . DS . 'about' . DS . 'view.stats');
}
}
?>
Mais exemplos: descriptografados de dmn 1.1.8
controlller.guides.php
<?php
/** Decrypted by MyHeart(RZ) **/
class guides extends controller
{
protected $vars = array();
protected $errors = array();
public function __construct()
{
parent::__construct();
$this->load->helper('website');
$this->load->lib('session', array('DmNCMS'));
$this->session->checkSession();
$this->load->model('guides');
$this->load->helper('breadcrumbs', array($this->request));
$this->load->helper('meta');
$this->load->lib('fb');
}
public function index()
{
$this->vars['guides'] = $this->Mguides->load_guides();
$this->load->view($this->config->config_entry('main|template') . DS . 'guides' . DS . 'view.guides', $this->vars);
}
public function read($title, $id)
{
if (is_numeric($id)) {
$this->vars['guide'] = $this->Mguides->load_guide_by_id($id);
if (!$this->vars['guide']) {
$this->vars['error'] = _('News article not found.');
}
}
else {
$this->vars['error'] = _('News article not found.');
}
$this->load->view($this->config->config_entry('main|template') . DS . 'guides' . DS . 'view.read_guide', $this->vars);
}
}
?>
model.guides.php
<?php
/** Decrypted by MyHeart(RZ) **/
class Mguides extends model
{
protected $guides = array();
public function __contruct()
{
parent::__construct();
}
public function load_guides()
{
$lang = $_COOKIE["dmn_language"];
return $this->website->connect_db('web')->query('SELECT id, title FROM DmN_Guides WHERE lang = \'' . $this->website->connect_db('web')->sanitize_var($lang) . '\' ORDER BY date DESC')->fetch_all();
}
public function load_guide_by_id($id)
{
$stmt = $this->website->connect_db('web')->prepare('SELECT id, title, text, date FROM DmN_Guides WHERE id = :id');
$stmt->execute(array(':id' => $id));
return $stmt->fetch();
}
}
?>
Créditos:
MyHeart (Decrypted and cracked)