This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
# For https | |
# listen 443 ssl; | |
# listen [::]:443 ssl ipv6only=on; | |
# ssl_certificate /etc/nginx/ssl/default.crt; | |
# ssl_certificate_key /etc/nginx/ssl/default.key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use App\ReaccessAccount; | |
use App\User; | |
use App\UserInfo; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Session; | |
use Validator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
exec('php lol.php'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Database\Capsule\Manager as Capsule; | |
$capsule = new Capsule; | |
$capsule->addConnection([ | |
'driver' => 'mysql', | |
'host' => 'localhost', | |
'database' => 'database', | |
'username' => 'root', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Create a web friendly URL slug from a string. | |
* | |
* Although supported, transliteration is discouraged because | |
* 1) most web browsers support UTF-8 characters in URLs | |
* 2) transliteration causes a loss of information | |
* | |
* @author Sean Murphy <sean@iamseanmurphy.com> | |
* @copyright Copyright 2012 Sean Murphy. All rights reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\System\Model; | |
use App\System\Database\Connector; | |
Class SimpleModel | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\System; | |
class Router | |
{ | |
public static $halts = false; | |
public static $routes = []; | |
public static $methods = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Class Animal | |
{ | |
protected $name; | |
public function getName() | |
{ | |
return $this->name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$pumpit_params = array(); | |
$pumpit_params['APP_ID'] = 4; // id игры, выдает администрация Pumpit | |
$pumpit_params['API_HOST'] = "http://pumpit.ru/riba_api/?"; // HOST PUMPIT | |
$pumpit_params['KEY_API'] = ''; // ключ подписи ко всем запросам кроме биллинговых, выдает администрация Pumpit | |
$pumpit_params['KEY_BILLING'] = ''; // ключ подписи для биллинговых запросов, выдает администрация Pumpit | |
$pumpit_params['LOG'] = ''; // файл для записи логов |