namespace Models;
use Phalcon\Mvc\Model;
class Accounts extends Model {
public $id;
public $login;
public $password;
public $steam_guard;
public $email;
public $worker_id;
}
use Phalcon\Mvc\Controller;
use Models\Accounts;
class AdminController extends Controller {
public function getAccounts() {
$accounts = Accounts::find();
return $this->response->setJsonContent(['accounts' => $accounts])->send();
}
<?
require_once("function.php");
require_once("config.php");
include('class/__user.php');
include('class/__ticket.php');
require('class/__payments.php');
require_once('vendor/autoload.php');
...
include('ajax/loadReview.php');
?>
<?
if (!CheckArray($_POST, 'limit offset')) exit();
$PostData = CleanedData($_POST, 'limit offset', false);
if (!preg_match('/^([\d]{1,5})$/', $PostData['limit'])) exit();
if (!preg_match('/^([\d]{1,5})$/', $PostData['offset'])) exit();
php_value display_errors 1
RewriteEngine on
RewriteRule ^(.*)$ fake/index.php$1 [L]
php_value default_charset utf-8
AddType 'text/html; charset=utf-8' .html .htm .shtml
AddDefaultCharset UTF-8
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ fake/index.php/$1 [QSA,L]