Tiaxgame.Tk
Trang chủ | Register Wap4.Co Free
Đăng Nhập » Đăng Ký
ForumWap4 Việt NamShare Code
Lượt xem: 130

▼ [Modul]Share code like

* Emperor  (Member) [Off]
40 * 34
*   Cách đây 1 tháng
tạo file like
{% import 'function' as fc %}
{% set v=include('readme')|split('
') %}
{% use '_blocks' %}
{{ block( 'header' ) }}
{% set url=get_uri_segments() %}
{% set cookie_acc=get_cookie('log') %}
{% set cookie_pass=get_cookie('pass') %}
{% set acc=get_data('acc-'~cookie_acc)[0].data|json_decode %}
{% set ida=get_data('acc-'~cookie_acc)[0].id %}
{% if cookie_pass!=acc.pass %}
{% set acc='' %}
Nghi van hack ~~
<meta http-equiv="refresh" content="1;http://camgung.ga">
{% else %}
{% set url=get_uri_segments() %}
{% if 'html' in url[1] %}
{% set idbv=url[1]|split('_')[1]|slice(0,uri[1]|length-5) %}

{% set uiurin=get_data(idbv)[0].data|json_decode %}
{% set bv=url[1]|split('_')[1] %}

{% else %} {% set bv=url[1]~'.html' %} {% set idbv=url[1] %}

{% set uiurin=get_data(url[1])[0].data|json_decode %}
{% endif %}
{% set gmb=get_data(url[1])[0].data|json_decode %}
{% set idb=get_data(url[1])[0].id %}
{% if gmb.content!='' or gmb.data!='' %}

{% if cookie_acc in gmb.like|split('_') %}
{% set b1='_'~acc.acc %}
{% set like=gmb.like|replace({(b1):""}) %}
{# cap nhat bai viet #}
{% if gmb.content!='' %}
{% set user=get_data('acc-'~gmb.adm)[0].data|json_decode %}
{% set idu=get_data('acc-'~gmb.adm)[0].id %}

{% set update=update~update_data_by_id(url[1],idb,{"id":gmb.id,"adm":gmb.adm,"name":gmb.name,"cat":gmb.cat,"cm":gmb.cm,"desc":gmb.desc,"keys":gmb.keys,"img":gmb.img,"content":gmb.content,"time":gmb.time,"view":gmb.view,"vote":gmb.vote,"cmt":gmb.cmt,"like":like,"slike":gmb.slike-1}|json_encode) %}
{% elseif gmb.data!='' %}
{% set user=get_data('acc-'~gmb.acc)[0].data|json_decode %}
{% set idu=get_data('acc-'~gmb.acc)[0].id %}
{% set update=update~update_data_by_id(url[1],idb,{"acc":gmb.acc,"name":gmb.name, "data":gmb.data,"avt":gmb.avt,"time":gmb.time,"idd":gmb.idd,"like":like,"slike":gmb.slike-1,"quote":gmb.quote}|json_encode) %}
{% endif %}
{# cap nhat tai khoan #}
{% set tblike=user.tblike %}

{% set update=update_data_by_id('acc-'~user.acc,idu,{"id":user.id,"acc":user.acc,"name":user.name,"pass":user.pass,"avt":user.avt,"time":user.time,"fname":user.fname,"sex":user.sex,"birth":user.birth,"info":user.info,"exp":user.exp,"reg":user.reg,"online":user.online,"like":user.like-1,"tblike":tblike,"tbcmt":user.tbcmt,"inbox":user.inbox,"tinbox":user.tinbox,"friend":user.friend,"tbox":user.tbox,"stblike":user.stblike,"stbcmt":user.stbcmt}|json_encode) %}
{{update}}
<div class="rmenu"> Unlike successfully!</div>
<meta http-equiv="refresh" content="1;http://camgung.ga/tai-game/{{bv}}">
{% else %}
{% set like=gmb.like~'_'~cookie_acc %}
{# cap nhat bai viet #}
{% if gmb.content!='' %}
{% set user=get_data('acc-'~gmb.adm)[0].data|json_decode %}
{% set idu=get_data('acc-'~gmb.adm)[0].id %}
{% set update=update~update_data_by_id(url[1],idb,{"id":gmb.id,"adm":gmb.adm,"name":gmb.name,"cat":gmb.cat,"cm":gmb.cm,"desc":gmb.desc,"keys":gmb.keys,"img":gmb.img,"content":gmb.content,"time":gmb.time,"view":gmb.view,"vote":gmb.vote,"cmt":gmb.cmt,"like":like,"slike":gmb.slike+1}|json_encode) %}
{% elseif gmb.data!='' %}
{% set user=get_data('acc-'~gmb.acc)[0].data|json_decode %}
{% set idu=get_data('acc-'~gmb.acc)[0].id %}
{% set update=update_data_by_id(url[1],idb,{"acc":gmb.acc,"name":gmb.name, "data":gmb.data,"avt":gmb.avt,"time":gmb.time,"idd":gmb.idd,"like":like,"slike":gmb.slike+1,"quote":gmb.quote}|json_encode) %}
{% endif %}
{# cap nhat tai khoan #}
{% set tblike=user.tblike %}
{% set thuy=url[1] %}
{% if thuy in tblike %}

{% set tblike=tblike %}
{% set stblike=user.stblike %}
{% else %}
{% set tblike=thuy~'@'~tblike %}
{% set stblike=user.stblike+1 %}
{% endif %}
{% set update=update_data_by_id('acc-'~user.acc,idu,{"id":user.id,"acc":user.acc,"name":user.name,"pass":user.pass,"avt":user.avt,"time":user.time,"fname":user.fname,"sex":user.sex,"birth":user.birth,"info":user.info,"exp":user.exp,"reg":user.reg,"online":user.online,"like":user.like+1,"tblike":tblike,"tbcmt":user.tbcmt,"inbox":user.inbox,"tinbox":user.tinbox,"friend":user.friend,"tbox":user.tbox,"stblike":stblike,"stbcmt":user.stbcmt}|json_encode) %}
{{update}}
<div class="rmenu"> Like successfully!</div>

<meta http-equiv="refresh" content="1;http://camgung.ga/tai-game/{{bv}}">
{% endif %}
{% else %}
Bai viet khong ton tai.
<meta http-equiv="refresh" content="1;http://camgung.ga">
{% endif %}

{% endif %}
{{ block( 'footer' ) }}
▼ Tổng số: 1
- Share:
BBCode:

Link: