Archived
1
0
This repository has been archived on 2020-12-10. You can view files and clone it, but cannot push or open issues or pull requests.
old/application/controllers/Tools/Generators.php

31 lines
992 B
PHP
Raw Normal View History

2018-10-16 16:28:42 +00:00
<?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']]);
}
}