31 lines
992 B
PHP
31 lines
992 B
PHP
|
<?php
|
||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||
|
|
||
|
class Generators extends MY_Controller {
|
||
|
|
||
|
public function __construct() {
|
||
|
parent::__construct('tools');
|
||
|
$this->load->model('NicknameModel', '', TRUE);
|
||
|
}
|
||
|
|
||
|
public function nickname()
|
||
|
{
|
||
|
$this->load->view('header', ['active' => 'nickname-generator', 'title' => lang('nick_site_title')]);
|
||
|
$this->load->view('tools/generators/nickname', ["counter" => "unendlich"]);
|
||
|
$this->load->view('footer', ['additionalScripts' => ['nickname.js']]);
|
||
|
}
|
||
|
|
||
|
public function nickname_functions()
|
||
|
{
|
||
|
$this->NicknameModel->generateName();
|
||
|
}
|
||
|
|
||
|
public function password()
|
||
|
{
|
||
|
$this->load->view('header', ['active' => 'password-generator', 'title' => lang('pass_site_title'), 'additionalStyles' => ['tools.css']]);
|
||
|
$this->load->view('tools/generators/password');
|
||
|
$this->load->view('footer', ['additionalScripts' => ['password.js']]);
|
||
|
}
|
||
|
|
||
|
}
|