PATH:
home
/
lab2454c
/
keebchat.com
/
apps
/
native
/
http
/
conversation
<?php # @*************************************************************************@ # @ @author Mansur Altamirov (Mansur_TL) @ # @ @author_url 1: https://www.instagram.com/mansur_tl @ # @ @author_url 2: http://codecanyon.net/user/mansur_tl @ # @ @author_email: highexpresstore@gmail.com @ # @*************************************************************************@ # @ ColibriSM - The Ultimate Modern Social Media Sharing Platform @ # @ Copyright (c) 21.03.2020 ColibriSM. All rights reserved. @ # @*************************************************************************@ if (empty($cl["is_logged"])) { cl_redirect("404"); } $uname = fetch_or_get($_GET["uname"], false); $uname = cl_text_secure($uname); $cl['interlocutor'] = cl_get_user_by_name($uname); if (empty($cl['interlocutor']) || ($cl['interlocutor']['id'] == $me['id'])) { cl_redirect("404"); } if (cl_is_blocked($cl['interlocutor']['id'], $me['id'])) { cl_redirect("blocked"); } else if(cl_is_blocked($me['id'], $cl['interlocutor']['id'])) { cl_redirect("404"); } require_once(cl_full_path("core/apps/chat/app_ctrl.php")); cl_session('interloc_user_id', $cl['interlocutor']['id']); $cl["page_title"] = $cl['interlocutor']['name']; $cl["page_desc"] = $cl["config"]["description"]; $cl["page_kw"] = $cl["config"]["keywords"]; $cl["pn"] = "conversation"; $cl["sbr"] = true; $cl["sbl"] = true; $cl["can_contact"] = cl_can_direct_message($cl['interlocutor']['id']); $cl["messages"] = cl_get_conversation(array( 'user_one' => $me['id'], 'user_two' => $cl['interlocutor']['id'], )); if (not_empty($cl["messages"])) { $cl["messages"] = array_reverse($cl["messages"]); } $cl["app_statics"] = array( "styles" => array( cl_css_template("statics/css/apps/conversation/style.master"), cl_css_template("statics/css/apps/conversation/style.mq") ) ); if ($cl["theme_mode"] == "N") { array_push($cl["app_statics"]["styles"], cl_css_template("statics/css/apps/conversation/style.dark")); } $cl["http_res"] = cl_template("conversation/content");
[+]
..
[-] content.php
[edit]