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

▼ [Modul]Share code tai-game

* Emperor  (Member) [Off]
43 * 37
*   Cách đây 6 tháng
{% 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 %}
{% if cookie_pass!=acc.pass %}
{% set acc='' %}
Nghi van hack ~~'
<meta http-equiv="refresh" content="1;http://camung.ga">
{% else %}
{% set uiurin=get_data('acc-'~url[1])[0].data|json_decode %}
{% if uiurin.acc=='' %}
{% if url[1]=='add' %}


{% set total=get_data('total')[0].data|json_decode %}
<div class="phdr"> Chọn người để liên lạc ( Danh sách sắp xếp theo id )</div>{% for i in 0..total.reg %}

<div class="list1"><a href="/inbox/{{total.acc|split('-')[i]|raw}}"> {{total.acc|split('-')[i]|raw}}</a></div>
{% endfor %}
{% elseif url[1]=='' %}

<div class="phdr"> Danh sách đã liên lạc </div>{% for i in 0..acc.tbox %}
{% if acc.friend|split('-')[i]|raw=='' %}
{% if acc.tbox==0 %} Chưa liên lạc với bất kì ai {% endif %}
{% else %}
<div class="list1"><a href="/inbox/{{acc.friend|split('-')[i]|raw}}"> {{acc.friend|split('-')[i]|raw}}</a></div>{% endif %}

{% endfor %}<div class="list1"> <a href="/inbox/add"> Liên lạc với những người khác </a></div>
{% endif %}



{% else %}

{% set tbox=acc.tinbox %}
{% set idacc=get_data('acc-'~cookie_acc)[0].id %}
{% set from=cookie_acc %}
{% set to=url[1] %}
{% if from>to %} {% set mess=to~'-'~from %} {% else %} {% set mess=from~'-'~to %} {% endif %}
{% set idto=get_data('acc-'~to)[0].id %}




{% if cookie_acc==from or cookie_acc==to %}



{% set time = now|date('U') %}
{% if request_method()|lower=="post" %}
{% if get_post('text') != '' %}
{% set status=save_data(mess,{"to":to,"from":from, "data":get_post('text'),"time":time,"check":"1"}|json_encode) %}
{% for i in 0..uiurin.tinbox %}
{% if uiurin.inbox|split('-')[i]|raw==from %}
{% set ib=uiurin.inbox %}{% set tinbox=uiurin.tinbox %}
{% else %}
{% set ib=uiurin.inbox~'-'~from %} {% set tinbox=uiurin.tinbox+1 %}
{% endif %}

{% set gmb24=update_data_by_id('acc-'~to,idto,{"id":uiurin.id,"acc":uiurin.acc,"name":uiurin.name,"pass":uiurin.pass,"avt":uiurin.avt,"time":uiurin.time,"fname":uiurin.fname,"sex":uiurin.sex,"birth":uiurin.birth,"info":uiurun.info,"exp":uiurin.exp,"reg":uiurin.reg,"online":uiurin.online,"inbox":ib,"tinbox":tinbox,"friend":uiurin.friend,"tbox":uiurin.tbox}|json_encode) %}
{{gmb24}}{% endfor %}

{% for i in 0..acc.tbox %}
{% if acc.friend|split('-')[i]|raw!=to %}
{% set friend=acc.friend~'-'~to %} {% set tbox=acc.tbox+1 %}
{% else %} {% set friend=acc.friend %}{% set tbox=acc.tbox %}
{% endif %}
{% set sad=update_data_by_id('acc-'~cookie_acc,idacc,{"id":acc.id,"acc":acc.acc,"name":acc.name,"pass":acc.pass,"avt":acc.avt,"time":acc.time,"fname":acc.fname,"sex":acc.sex,"birth":acc.birth,"info":uiurun.info,"exp":acc.exp,"reg":acc.reg,"online":acc.online,"inbox":acc.ib,"tinbox":acc.tinbox,"friend":friend,"tbox":tbox}|json_encode) %}


{{sad}}{% endfor %}
<div class="rmenu">{{status}} </div>
{% set update=update_data_by_id(mess,status,{"to":to,"from":from,"data":get_post('text'),"time":time,"check":"1","id":status}|json_encode) %} {{update}}<meta http-equiv="refresh" content="1;http://camung.ga/inbox/{{to}}">
{% endif %}
{% endif %}



<div class="phdr">{{to}}</div>
<form method="post" action="#cmt">
<div class="list1">Nội Dung :</div>
<textarea name="text"></textarea>
<input type="submit" value="Send">
</form>




{% set v=include('readme')|split('
') %}
{% set uri=get_uri_segments() %}
{% set total = get_data_count(mess) %}
{% set max = total//100 %}
{% set p=uri[2]|default(1) %}
{% if p=='edit' %}
{% set p=uri[3]|default(1) %}
{% endif %}
{% set stop=total-p*v[5]+1 %}
{% set start=stop+v[5] %}
{% if start > total %}
{% set start=total %}
{% endif %}
{% if stop < 0 %}
{% set stop=0 %}
{% endif %}
{% if loop.last == false and loop.first == false %}
{% for i in start..stop %}
{% set data = get_data(mess,'100',i//100) %}
{% set inbox=data[i-i//100*100].data|json_decode%}


{% if inbox.to==cookie_acc %}

{% for i in 0..acc.tinbox %}
{% if acc.inbox|split('-')[i]|raw==to %}
{% set ib=acc.inbox|replace('-'~to,'') %} {% set tinbox=acc.tinbox-1 %}
{% else %} {% set ib=acc.inbox %}{% set tinbox=acc.tinbox %}
{% endif %}

{% set gmb24=update_data_by_id('acc-'~cookie_acc,idacc,{"id":acc.id,"acc":acc.acc,"name":acc.name,"pass":acc.pass,"avt":acc.avt,"time":acc.time,"fname":acc.fname,"sex":acc.sex,"birth":acc.birth,"info":acc.info,"exp":acc.exp,"reg":acc.reg,"online":acc.online,"inbox":ib,"tinbox":tinbox,"friend":acc.friend,"tbox":acc.tbox}|json_encode) %} {{gmb24}}
{% endfor %}
{% set updatev=update_data_by_id(mess,inbox.id,{"to":inbox.to,"from":inbox.from,"data":inbox.data,"time":inbox.time,"check":"0","id":inbox.id}|json_encode) %}
{{updatev}}{% endif %}
{% if inbox.data=='' %} {% else %}
<div class="wrap-comment"><table width="100%" class="wrap-table"> <img src="http://forlam.wap.sh/images/icon/adm.gif" alt="member"/> {{inbox.from}}<br><img src="http://viptruyen.mobie.in/images/icon/clock.png" alt="time"/> {% set date=inbox.time+25200 %}{{date|date('H:m:s d/m/Y')}}{% if inbox.from==cookie_acc %}<br>•<font color="#0063FF">
{% if inbox.check=='1' %} Chưa xem {% elseif inbox.check=='0' %} Đã xem {% endif %} </font>{% endif %}
</table><div class="wrap-content"><p>
{{fc.bb_sh(inbox.data)}}
</p></div></div>

{% endif %}
{% endfor %}

{% set pagemax=total//v[5] %}
{% if total/v[5]-pagemax>0 %}
{% set pagemax=pagemax+1 %}
{% endif %} {{fc.paging('inbox/'~uri[1],p,pagemax)}}
{% else %}
Ban khong the truy cap vao day
<meta http-equiv="refresh" content="1;http://camung.ga">
{% endif %}
{% endif %} {% endif %}{% endif %}
{{ block( 'footer' ) }}
▼ Tổng số: 1
- Share:
BBCode:

Link: