Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

include('functions.php'); global $db; if(!$session){ header('location: '.$ssl.$_SERVER['S..

Decoded Output download

<?   include('functions.php'); global $db; if(!$session){ header('location: '.$ssl.$_SERVER['SERVER_NAME'].root_dir.'/login.php');exit; } $act = strip_tags($_GET['act']); preg_match("/^[a-zA-Z0-9\w]+/", $act,$actx); $act = $actx[0]; if(isset($_GET['file'])) { $file = intval($_GET['file']); $file = $_SERVER['DOCUMENT_ROOT'].download_dir.'/'.$file.'.dump'; if(file_exists($file)){ to_download($file); } exit; } if($act == 'logout') { foreach($_SESSION as $p=>$x) { unset($_SESSION[$p]); } header('location: '.$ssl.$_SERVER['SERVER_NAME'].root_dir.'/login.php'); exit; } $self_account_id = get_setting('self_account_id'); $pname = get_setting_account('profile_tg',$self_account_id); $bot_token = get_setting_account('bot_token',$self_account_id); $bot_username = get_setting_account('bot_username',$self_account_id); if((empty($bot_username)) or (empty($bot_token))){ $bot_username = "<span style='color:red'>: API Token Telegram</span>"; } else{ $bot_username = '@'.$bot_username; } $chk = query_get("https://cdn.tposter.top/vers.info"); if(!empty($chk)) { $data_vers = json_decode($chk,true); $last_vers = $data_vers['v']; $rx = mysqli_query($db,"SHOW COLUMNS FROM `setting` LIKE 'v'"); $check = mysqli_num_rows($rx); if(($check == 0) ){ mysqli_query($db,"ALTER TABLE `setting` ADD `v` INT NOT NULL AFTER `user_id`;"); $v = 0; } else{ $v = get_setting('v');} $update_all = 0; $columns = query_get("https://cdn.tposter.top/update_x.info"); $columns_data = json_decode($columns,true); $colums_add = ''; $table_add = 0; foreach($columns_data as $table=>$cols) { foreach($cols as $name=>$type) { $r = mysqli_query($db,"SHOW TABLES LIKE '$table'"); $is_table = mysqli_num_rows($r); if($is_table > 0) { $rx = mysqli_query($db,"SHOW COLUMNS FROM `$table` LIKE '$name'"); $exist = mysqli_num_rows($rx); if($exist == 0) { mysqli_query($db,"ALTER TABLE `$table` ADD `$name` $type NOT NULL"); $update_all++; } }else { if($name == 'user_id'){ $def = " DEFAULT '1'"; }else { $def = ''; } $colums_add .= "`$name` $type NOT NULL $def,"; } } if($is_table == 0) { mysqli_query($db,"CREATE TABLE `$table` (`id` int NOT NULL AUTO_INCREMENT,$colums_add PRIMARY KEY (id)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci"); $table_add++; } } mysqli_query($db,"UPDATE `setting` SET `v` = '$last_vers'"); } ?> <!doctype html> <html lang="ru"> <head> <meta charset="utf-8"> <title>Telegram  / v8.3 [Alone] Kostolom</title> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="author" content="@mortem_art"> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <link rel="stylesheet" href=" <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.css"> <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.js"></script> <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css" rel="stylesheet" /> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js"></script> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap-select.min.css"> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap-select.min.js"></script> <script src="https://cdn.tposter.top/libs/js/main_func.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-timepicker-addon/1.6.3/jquery-ui-timepicker-addon.min.js" integrity="sha512-s5u/JBtkPg+Ff2WEr49/cJsod95UgLHbC00N/GglqdQuLnYhALncz8ZHiW/LxDRGduijLKzeYb7Aal9h3codZA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-timepicker-addon/1.6.3/jquery-ui-timepicker-addon.min.css" integrity="sha512-LT9fy1J8pE4Cy6ijbg96UkExgOjCqcxAC7xsnv+mLJxSvftGVmmc236jlPTZXPcBRQcVOWoK1IJhb1dAjtb4lQ==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-timepicker-addon/1.6.3/i18n/jquery-ui-timepicker-addon-i18n.min.js" integrity="sha512-t2ZIJH81Sh+SWSb4BuA9en4j6fwja+sYOEXbqoepD9lJ+efUGD94gSWqdmgQchGmPez2ojECq4Fm6bKMUAzIiQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <link rel="stylesheet" href="<?=root_dir;?>/css/font-awesome.css"> <link rel="stylesheet" href="<?=root_dir;?>/css/style.css"> <link rel="apple-touch-icon" sizes="180x180" href="<?=root_dir;?>/img/favicon/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="32x32" href="<?=root_dir;?>/img/favicon/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="<?=root_dir;?>/img/favicon/favicon-16x16.png"> <link rel="manifest" href="<?=root_dir;?>/img/favicon/site.webmanifest"> <link rel="mask-icon" href="<?=root_dir;?>/img/favicon/safari-pinned-tab.svg" color="#5bbad5"> <link rel="shortcut icon" href="<?=root_dir;?>/img/favicon/favicon.ico"> <meta name="msapplication-TileColor" content="#2d89ef"> <meta name="msapplication-config" content="<?=root_dir;?>/img/favicon/browserconfig.xml"> <meta name="theme-color" content="#ffffff"> </head> <body> <div class="container"> <?if(($update_all > 0) or ($table_add > 0)){?> <script> $(document).ready(function(){ $.alert({title: 'Info:',content: ' Updated<?php echo "<br> Add columns:tables base: ".$update_all.':'.$table_add;?>.<br>Current vers: 8.3',}); }); </script> <?}?> <input type='hidden' id='page_x' value='<?=$_SERVER['REQUEST_URI'];?>'> <input type='hidden' id='select2_open' value='0'> <input type='hidden' id='open_log_task' value='0'> <input type='hidden' id='log_setting_id' value='0'> <input type='hidden' id='cache_update' value='0'> <ul class="nav nav-tabs"> <li class="nav-item"> <a class="nav-link active t1" data-toggle="tab" href="#power"><i class="fa fa-paper-plane-o" ></i>  </a> </li> <li class="nav-item update_channels"> <a class="nav-link t2" data-toggle="tab" href="#setting_channel"><i class="fa fa-list" ></i>  </a> </li> <li class="nav-item"> <a class="nav-link t3" data-toggle="tab" href="#setting_channel_chat_gpt"><i class="fa fa-list" ></i>  chatGPT</a> </li> <li class="nav-item"> <a class="nav-link t4" data-toggle="tab" href="#setting"><i class="fa fa-cogs" ></i>  </a> </li> <li class="nav-item"> <a class="nav-link t4" data-toggle="tab" href="#dump_opt"><i class="fa fa-files-o" ></i> .</a> </li> <li class="nav-item"> <a class="nav-link t4" data-toggle="tab" href="#info_user"> </a> </li> </ul> <div class='col-md-12'> <div class="tab-content"> <div id="power" class="tab-pane active" style='padding:0;'> <div class='col-md-12' style='padding:0;'> <div class='col-md-5' style='margin-bottom:5px;padding:0;width:400px;'> <label><b> :</b></label> <select class='select2 list_channel_publish' style='width:100%;'> <option value=''></option> <optgroup class="select2-result-selectable" label="Telegram :"> <? $rx = mysqli_query($db,"SELECT `channel_url`,`name` FROM `join_exists` WHERE `type` = '2' AND `name` != '' AND `social` = '0' AND `id_account` = '$self_account_id' AND `user_id` = '$user_id'"); $num1 = mysqli_num_rows($rx); if($num1 == 0){ $view_p = 'display'; } else { $view_p = 'none'; } while($list = mysqli_fetch_assoc($rx)) { $social_desc = 'TG: '; $ico = ''; ?> <option value='<?=$list['channel_url'];?>'><?=$ico;?> <?=html_entity_decode($social_desc.$list['name']);?></option> <?}?> </optgroup> <optgroup class="select2-result-selectable" label="VK :"> <? $rx1 = mysqli_query($db,"SELECT `channel_url`,`name` FROM `join_exists` WHERE `type` = '2' AND `name` != '' AND `social` = '1' AND `id_account` = '$self_account_id' AND `user_id` = '$user_id'"); $num1 = mysqli_num_rows($rx1); if($num1 == 0){ $view_p = 'display'; } else { $view_p = 'none'; } while($list = mysqli_fetch_assoc($rx1)) { $social_desc = 'VK: '; $ico = ''; ?> <option value='<?=$list['channel_url'];?>'><?=$ico;?> <?=html_entity_decode($social_desc.$list['name']);?></option> <?}?> </optgroup> <option value='0'>  <option> </select> <input type="text" class="form-control form-control-sm" id='channel_publish' style='margin-top:2px;display:<?=$view_p;?>;' placeholder='https://t.me/username,  - https://t.me/groupname/123'> </div> <div class='col-md-5' style='width:400px;padding:0;'> <label><b> :</b> </label> <button type="button" class="btn btn-danger btn-xs similar_channels"><i class="fa fa-search"></i>   </button> <select class='select2 list_channel_origin' style='width:100%;'> <option></option> <optgroup class="select2-result-selectable" label=" :"> <? $habr_arr = json_decode($habr_json,true); foreach($habr_arr['items'] as $st=>$item_opt) { $name_group = $habr_arr['label'][$st]['name']; $alias_group = $habr_arr['label'][$st]['alias']; foreach($item_opt as $st2=>$item) { $name = $item['name']; $alias = $item['alias']; $info = " $name_group->$name"; ?> <option value='<?=$alias;?>' type='1' habr_num='<?=$st.':'.$st2;?>'><?=$info;?></option> <?}?> <?}?> </optgroup> <optgroup class="select2-result-selectable" label="Telegram :"> <? $rx = mysqli_query($db,"SELECT `channel_url`,`name`,`social`,`topic_id` FROM `join_exists` WHERE `type` = '1' AND `name` != '' AND `id_account` = '$self_account_id' AND `social` = '0' AND `user_id` = '$user_id'"); $num1 = mysqli_num_rows($rx); if($num1 == 0){ $view_o = 'display'; } else { $view_o = 'none'; } while($list = mysqli_fetch_assoc($rx)) { $topic_id = $list['topic_id']; $social_desc = 'TG: '; $ico = ''; if($topic_id > 0){ $channel_u = $list['channel_url']."/$topic_id"; }else { $channel_u = $list['channel_url']; } ?> <option value='<?=$channel_u;?>' type='2'><?=$ico;?> <?=html_entity_decode($social_desc.$list['name']);?></option> <?}?> </optgroup> <optgroup class="select2-result-selectable" label="VK :"> <? $rx = mysqli_query($db,"SELECT `channel_url`,`name`,`social`,`topic_id` FROM `join_exists` WHERE `type` = '1' AND `name` != '' AND `id_account` = '$self_account_id' AND `social` = '1' AND `user_id` = '$user_id'"); $num1 = mysqli_num_rows($rx); if($num1 == 0){ $view_o = 'display'; } else { $view_o = 'none'; } while($list = mysqli_fetch_assoc($rx)) { $topic_id = $list['topic_id']; $social_desc = 'VK: '; $ico = ''; if($topic_id > 0){ $channel_u = $list['channel_url']."/$topic_id"; }else { $channel_u = $list['channel_url']; } ?> <option value='<?=$channel_u;?>' type='3'><?=$ico;?> <?=html_entity_decode($social_desc.$list['name']);?></option> <?}?> </optgroup> <option value='0'>  <option> </select> <input type="text" class="form-control form-control-sm" id='channel_origin' style='margin:0 0 2px;;display:<?=$view_o;?>;' placeholder=' https://t.me/username, id , http://vk.com/group' title='https://t.me/channel,  - https://t.me/groupname/123 \ https://t.me/joinchat/XXXX, id   1138327XXX  http://vk.com/group'> </div> <div class='col-md-2'> <br><button class='btn add_channel'><i class="fa fa-plus" ></i> </button> <img src='<?=root_dir;?>/img/load.gif' id='load' style='display:none;'> </div> <br><label><b id='tasks'>: 0</b> | <b id='total_origin'>:</b></label> <span id='info_tasks'> <label id='info_task1' style='display:none;' title='  telegram  telegram'>TG-TG: <b id='info_task1_val'></b></label> <label id='info_task2' style='display:none;' title='  telegram  vk'> | TG-VK: <b id='info_task2_val'></b></label> <label id='info_task3' style='display:none;' title='  vk  telegram'>| VK-TG: <b id='info_task3_val'></b></label> <label id='info_task4' style='display:none;' title='  vk  vk'>| VK-VK: <b id='info_task4_val'></b></label> <label id='info_task5' style='display:none;' title='  habr  tg'>| HABR-TG: <b id='info_task5_val'></b></label> <label id='info_task6' style='display:none;' title='  habr  vk'>| HABR-VK: <b id='info_task6_val'></b></label> </span> <button class='btn update_task_list'><i class="fa fa-refresh" ></i> </button> <br><img src='<?=root_dir;?>/img/load.gif' id='load_tasks'> <table class="table table-bordered table-striped table_x1" style='display:none;'> <thead> <tr> <th scope="col" class='opt_col' style='width:26%;'> </th> <th scope="col" class='opt_col invisible_' style='width:34%;' >  \ </th> <th scope="col" class='opt_col '></th> <th scope="col" class='opt_col invisible_'></th> <th scope="col" class='opt_col' style='width:41px;'>#</th> </tr> </thead> <tbody id='channels'></tbody> </table> </div> </div> <div id="setting" class="container tab-pane fade" style='max-width:100%;'> <div class='col-md-12 box_setting' style='padding:0;margin-top:-18px;'> <div class="col-md-11 clear_p" > <label><b>*  telegram :</b></label> <button type="button" class="btn btn-danger btn-xs rename_account" ><i class="fa fa-pencil"></i> </button> <select class='select2 change_account' id='self_account' style='width:100%;margin-bottom:6px;'> <? $r = mysqli_query($db,"SELECT `id`,`profile_tg`,`name` FROM `accounts_setting` WHERE `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { $id = $list['id']; if($list['id'] == $self_account_id){ $sel = 'selected'; } else { $sel = ''; } if(empty($list['name'])){ $name = '+'.str_replace('.tg','',$list['profile_tg']); } else { $name = $list['name']; } ?><option value='<?=$list['id'];?>' <?=$sel;?>><?=$name;?></option><? ?> <?}?> </select> <button type="button" class="btn btn-primary btn-xs power_channels_join"><i class="fa fa-bars"></i>  </button> <button type="button" class="btn btn-primary btn-xs default_data_filter" title='  (-\u0423 )'><i class="fa fa-bars"></i>  </button> <?if($_SESSION['rang'] == 1){?> <button type="button" class="btn btn-primary btn-xs manager_accounts" style='margin-top:6px;;' title=' (  )'><i class="fa fa-users" ></i>  </button> <?}?> <button type="button" class="btn btn-primary btn-xs add_account" title='  ' step_add='0'><i class="fa fa-plus"></i>  </button> <button type="button" class="btn btn-danger btn-xs proxy_manager"><i class="fa fa-plug"></i> </button> <button type="button" class="btn btn-danger btn-xs del_account" value='1' style='float:right;'><i class="fa fa-remove"></i>  </button> <button type="button" class="btn btn-danger btn-xs del_account" value='2' style='float:right;'><i class="fa fa-remove"></i>  </button> </div> <div class='col-md-5 clear_p'> <? $rx = mysqli_query($db,"SELECT `bot_token`,`status`,`restart`,`duplicat_dis_glob`,`similar_text`,`update_task`,`clear_updates`, `clear_duplicatus`,`api_key_vk`,`missed_post`,`chat_gpt_key`,`not_update_join_list`, `proxy_gpt`,`limit_publish`,`limit_publish_count`,`limit_publish_hours`, `limit_publish_send`,`conrirm_del_task`,`photo_album_vk`,`neural_network`,`oauth_token_gpt`, `model_uri_yandex_gpt`,`model_gpt_yandex` FROM `accounts_setting` WHERE `id` = '$self_account_id' AND `user_id` = '$user_id'"); $data_x = mysqli_fetch_assoc($rx); $bot_token = $data_x['bot_token']; $status = $data_x['status']; $restart = intval($data_x['restart']) ? :''; $duplicat_dis_glob = $data_x['duplicat_dis_glob']; $similar_text = $data_x['similar_text']; $update_task = $data_x['update_task']; $clear_updates = $data_x['clear_updates']; $clear_duplicatus = $data_x['clear_duplicatus']; $api_key_vk = $data_x['api_key_vk']; $missed_post = $data_x['missed_post']; $chat_gpt_key = $data_x['chat_gpt_key']; $not_update_join_list = $data_x['not_update_join_list']; $proxy_gpt = $data_x['proxy_gpt']; $limit_publish = $data_x['limit_publish']; $limit_publish_count = $data_x['limit_publish_count']; $limit_publish_hours = $data_x['limit_publish_hours']; $limit_publish_send = $data_x['limit_publish_send']; $conrirm_del_task = $data_x['conrirm_del_task']; $vk_album_id = $data_x['photo_album_vk']; $neural = $data_x['neural_network']; $oauth_token_gpt = $data_x['oauth_token_gpt']; $model_uri_yandex_gpt = $data_x['model_uri_yandex_gpt']; $model_gpt_yandex = $data_x['model_gpt_yandex']; if($limit_publish == 1){ $show_limit_p = 'block'; } else { $show_limit_p = 'none'; } ?> <div class="form-group"> <br> <label><b><a href="https://t.me/BotFather" target="_blank" class="link_apikey">API Token</a> Telegram -  \   VK:</b></label> <input type="text" class="form-control form-control-sm" id='bot_token' value='<?=$bot_token;?>'> <label><b>:</b></label> <div id='neural_network_block'> <div class="form-check-inline"> <label class="form-check-label"> <input type="radio" class="form-check-input neural_network" name="neural_network" value='0' <?if($neural == 0){ echo "checked"; }?>>ChatGPT</label> </div> <div class="form-check-inline"> <label class="form-check-label"> <input type="radio" class="form-check-input neural_network" name="neural_network" value='1' <?if($neural == 1){ echo "checked"; }?>>YandexGPT</label> </div> </div> <div id='gpt_show1' <?if($neural > 0){ echo "style='display:none;'";}?>> <label><b><a href='https://platform.openai.com/account/api-keys' target='_blank' class='link_apikey'>API KEY</a> List -    ChatGPT:</b></label> <textarea class="form-control form-control-sm" id='chat_gpt_key' title=' API KEY -     ' placeholder="<?echo "sk-xxxxxx
sk-xxxxxx";?>"><?=$chat_gpt_key;?></textarea> <div class="form-check-inline"> <div class="custom-control custom-switch" title='    ip RU"'> <input type="checkbox" class="custom-control-input proxy_gpt" id='proxy_gpt' <?if($proxy_gpt == 1){ echo 'checked'; }?>> <label for='proxy_gpt' class="custom-control-label" ><b>  TOR</b></label> </div> </div> </div> <div id='gpt_show2' <?if($neural <> 1){ echo "style='display:none;'";}?>> <label class="form-check-label"><b> GPT:</b></label> <select class='select2 model_gpt_yandex' id='model_gpt_yandex' style='width:100%;'> <option value='0' <?if($model_gpt_yandex == 0){ echo "selected"; }?>>YandexGPT Lite: RC GPT 3</option> <option value='1' <?if($model_gpt_yandex == 1){ echo "selected"; }?>>YandexGPT Lite: Latest GPT 2</option> <option value='2' <?if($model_gpt_yandex == 2){ echo "selected"; }?>>YandexGPT PRO: Latest GPT 3</option> </select> <label><b>OAuth-token -    YandexGPT:</b></label> <input type="text" class="form-control form-control-sm" id='oauth_token_yandex_gpt' value='<?=$oauth_token_gpt;?>'> <label><b>modelUri -  :</b></label> <input type="text" class="form-control form-control-sm" id='model_uri_yandex_gpt' placeholder='b2gxqde1ghcmg68ipn1xQ' value='<?=$model_uri_yandex_gpt;?>'> <br><a type='button' href='https://telegra.ph/Nastrojka-YandexGPT-API-08-30' class='btn btn-primary' id='info_gpt_ya' target='_blank'>  </a> </div> <hr> <label><b>\u0418    (%):</b> <span title=' %  ,   %   .' style='color:#b50617;font-size:11px;'>?</span></label> <input type="number" class="form-control form-control-sm" id='similar_text' value='<?=$similar_text;?>' min='0' max='100' placeholder='0 - .  1%  99%' title='     ( ),    .'> <br> <details> <summary style='text-indent:5px;;'> ()</summary> <label><b> (    telegram):</b></label> <select class='select2' id='rename_channel' style='width:100%;margin-bottom:6px;'> <option value='0'></option> <? $r = mysqli_query($db,"SELECT `channel_id`,`name` FROM `join_exists` WHERE `type` = '2' AND `id_account` = '$self_account_id' AND `topic_id` = '0' AND `social` = '0' AND `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { ?><option value='<?=$list['channel_id'];?>' ><?=$list['name'];?></option><? ?> <?}?> </select> <span id='new_name' style='display:none;'> <br><label><b>  :</b></label> <input type="text" class="form-control form-control-sm" id='channel_name'> <button type="button" class="btn btn-primary btn-xs change_name_channel"><i class="fa fa-pencil-square-o" ></i> </button> </span><br><hr> </details> <div class="form-check-inline"> <div class="custom-control custom-switch" title=' \u0418  : "   "'> <input type="checkbox" class="custom-control-input duplicat_dis_glob" id='duplicat_dis_glob' <?if($duplicat_dis_glob == 1){ echo 'checked'; }?>> <label for='duplicat_dis_glob' class="custom-control-label" ><b>   ( )   </b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input update_task" id='update_task' <?if($update_task == 1){ echo 'checked'; }?>> <label for='update_task' class="custom-control-label" ><b> -    </b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input missed_post" id='missed_post' <?if($missed_post == 1){ echo 'checked'; }?>> <label for='missed_post' class="custom-control-label" title='     '><b>     </b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input not_update_join_list" id='not_update_join_list' <?if($not_update_join_list == 1){ echo 'checked'; }?>> <label for='not_update_join_list' class="custom-control-label" title='   \u043a,     ""   .'><b>   (  )</b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input conrirm_del_task" id='conrirm_del_task' <?if($conrirm_del_task == 1){ echo 'checked'; }?>> <label for='conrirm_del_task' class="custom-control-label" title='       .'><b>   </b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input limit_publish" id='limit_publish' <?if($limit_publish == 1){ echo 'checked'; }?>> <label for='limit_publish' class="custom-control-label" title='  -     .    : [    ] '><b>   </b></label> </div> <div id="limit_publish_box" style="padding-left:36px;display:<?=$show_limit_p;?>"> <div class="col-md-3"> <label> :</label> <input class="form-control limit_publish_count" type="number" value="<?=$limit_publish_count;?>" min="1" style="width:102px"> </div> <div class="col-md-3"> <label> :</label> <input class="form-control limit_publish_hours" type="number" value="<?=$limit_publish_hours;?>" min="1" title='  . 24 -  | 48 - 2 ' style="width:102px"> </div> <div class="col-md-5" style='padding:0 5px;'> <label> :</label> <label class='limit_info_data'> : <b style='color:green;' id='publish_send_info'><?=$limit_publish_send;?></b><br> : <b id='publish_count_info'><?=$limit_publish_count;?> </b><br>   <b id='publish_hours_info'><?=$limit_publish_hours;?> </b>.</label> <button type="button" class="btn btn-primary btn-xs limit_publish_reset"><i class="fa fa-refresh"></i>  </button> </div> </div> </div> <hr> <label><b> :</b></label> <div class="form-check-inline work_status"> <div class="custom-control custom-checkbox col-sm-12"> <input type="radio" class="custom-control-input status_bot" name="status_bot" id='status_bot1' value='0' <?if(($status == 0) && ($self_account_id > 0)){ echo 'checked'; }?>> <label for='status_bot1' class="custom-control-label"></label> </div> </div> <div class="form-check-inline work_status"> <div class="custom-control custom-checkbox col-sm-12"> <input type="radio" class="custom-control-input status_bot" name="status_bot" id='status_bot2' value='1' <?if($status == 1){ echo 'checked'; }?>> <label for='status_bot2' class="custom-control-label"></label> </div> </div> </div> </div> <div class='col-md-5'> <div class='col-md-12 '> <br><h6>   vk.com</h6> <details style='font-size:14px;'> <summary>()</summary> <label><b style='font-size:10px;'>1.    vk,     <a href='https://oauth.vk.com/authorize?client_id=2685278&scope=1073737727&redirect_uri=https://oauth.vk.com/blank.html&display=page&response_type=token&revoke=1' target='_blank' style='font-size:10px;'>Create token</a>.<br>2.  "".<br> 3.      "access_token="     .</b></label><br> </details> <label style='margin-top:12px;'><b>AccessToken [API VK] -  :</b></label> <input type="text" class="form-control form-control-sm" id='api_key_vk' value='<?=$api_key_vk;?>' placeholder='access_token'> <label style='margin-top:12px;'><b>Album-ID( \u043f   vk ):</b></label> <input type="text" class="form-control form-control-sm" id='vk_album_id' value='<?=$vk_album_id;?>' title=' xxxxxxxx : vk.com/album12345_xxxxxxxx.   .' placeholder='xxxxxxxx'> </div> <div class='col-md-12 '> <hr><h6>Manager AutoClear tmp data</h6> <label><b>-  :</b></label><br> <label><b>    ():</b></label> <input type="number" class="form-control form-control-sm" id='clear_duplicatus' value='<?=$clear_duplicatus;?>' min='1' max='14' title='        .'> <label><b>  updates():</b></label> <input type="number" class="form-control form-control-sm" id='clear_updates' value='<?=$clear_updates;?>' min='1' max='14' title='    :    \   \ ID .'> </div> <hr> <label><b> :</b></label> <input type="password" class="form-control form-control-sm" id='new_pwd' > <button type="button" class="btn btn-primary btn-xs change_pwd"><i class="fa fa-pencil-square-o" ></i> </button> <a href='<?=root_dir;?>/logout/' class='btn btn-primary btn-xs'><i class="fa fa-sign-out" ></i>  </a> </div> <button class='btn btn-primary save_setting' style='width:100%;'><i class="fa fa-floppy-o"></i> </button> </div> </div> <div id="setting_channel" class="container tab-pane fade" > <div class='col-md-12' style='padding:0;'> <? $r1 = mysqli_query($db,"SELECT `setting_id`,`social_pub` FROM `channels_origin` WHERE `account_id` = '$self_account_id' AND `user_id` = '$user_id' ORDER BY `id` LIMIT 0,1"); $data_s = mysqli_fetch_assoc($r1); $setting_id_1 = $data_s['setting_id']; $social_pub = $data_s['social_pub']; $rx = mysqli_query($db,"SELECT `spam_filter`,`replace_words`,`filter_message`,`filter_inline`,`enable_text_message`,`my_text_message`, `replace_link`,`skip_text`,`filter_links`,`timetable`,`time_post`,`limit_post`,`limit_hours`, `limit_time`,`limit_status`,`forward_message`,`ignore_post_type`,`sugn_channel`,`word_send_post`, `word_send_post_func`,`word_send_post_type`,`replace_username_stat`,`replace_username`,`update_message`, `delete_message`,`reply_post`,`length_message_limit`,`length_message`,`type_check_m`, `schedule`,`schedule_date`,`send_text_no_media`,`post_no_webpage`,`ignore_album`,`ignore_audio`, `duplicat_dis`,`del_empty_line`,`rename_files_func`,`word_rename_files`,`arm_link`,`arm_links_data`,`round_msg`, `sing_image`,`sing_image_png`,`pinned_message`,`hash_tags`,`entities`,`photo_text_post`, `photo_text_post_image`,`preg_match_list`,`pg_type`,`preg_match_text`,`sticker`,`limit_send`,`limit_send_posts`, `method_send_post`,`inline_url_data`,`inline_keyboard`,`method_send_max_file`,`spoiler_bot_photo`, `protect_content_bot`,`spoiler_bot_video`,`grabber_username`,`close_comments`, `auto_delete_message`,`value_delete_message`,`period_delete_message`,`delete_sign_source`,`valid_sing_post`, `inline_copy`,`inline_copy_url`,`grabber_content`,`delete_emoji`,`sing_image_position`,`pinned_message_type`, `habr_post_type`,`habr_photo_end` FROM `channels_settings` WHERE `id` = '$setting_id_1'"); $data_x = mysqli_fetch_assoc($rx); $spam_filter = $data_x['spam_filter']; $replace_words = $data_x['replace_words']; $filter_message = $data_x['filter_message']; $filter_inline = $data_x['filter_inline']; $enable_text_message = $data_x['enable_text_message']; $my_text_message = $data_x['my_text_message']; $replace_link = $data_x['replace_link']; $skip_text = $data_x['skip_text']; $filter_links = $data_x['filter_links']; $timetable = $data_x['timetable']; $limit_status = $data_x['limit_status']; $forward_message = $data_x['forward_message']; $ignore_post_type = $data_x['ignore_post_type']; $sugn_channel = $data_x['sugn_channel']; $word_send_post = $data_x['word_send_post']; $word_send_post_func = $data_x['word_send_post_func']; $word_send_post_type = $data_x['word_send_post_type']; $replace_username_stat = $data_x['replace_username_stat']; $replace_username = $data_x['replace_username']; $update_message = $data_x['update_message']; $delete_message = $data_x['delete_message']; $reply_post = $data_x['reply_post']; $length_message_limit = $data_x['length_message_limit']; $type_check_m = $data_x['type_check_m']; $schedule = $data_x['schedule']; $schedule_date = $data_x['schedule_date']; $send_text_no_media = $data_x['send_text_no_media']; $post_no_webpage = $data_x['post_no_webpage']; $ignore_album = $data_x['ignore_album']; $ignore_audio = $data_x['ignore_audio']; $duplicat_dis = $data_x['duplicat_dis']; $del_empty_line = $data_x['del_empty_line']; $rename_files_func = $data_x['rename_files_func']; $word_rename_files = $data_x['word_rename_files']; $arm_links_data = json_decode($data_x['arm_links_data'],true); $round_msg = $data_x['round_msg']; $sing_image = $data_x['sing_image']; $sing_image_png = $data_x['sing_image_png']; $pinned_message = $data_x['pinned_message']; $hash_tags = $data_x['hash_tags']; $entities = $data_x['entities']; $photo_text_post = $data_x['photo_text_post']; $photo_text_post_image = $data_x['photo_text_post_image']; $preg_match_list = base64_decode($data_x['preg_match_list']); $pg_type = $data_x['pg_type']; $preg_match_text = $data_x['preg_match_text']; $sticker = $data_x['sticker']; $limit_send = $data_x['limit_send']; $limit_send_posts = $data_x['limit_send_posts']; $inline_url_data = $data_x['inline_url_data']; $method_send_post = $data_x['method_send_post']; $inline_keyboard = $data_x['inline_keyboard']; $method_send_max_file = $data_x['method_send_max_file']; $spoiler_bot_photo = $data_x['spoiler_bot_photo']; $protect_content_bot = $data_x['protect_content_bot']; $spoiler_bot_video = $data_x['spoiler_bot_video']; $grabber_username = $data_x['grabber_username']; $close_comments = $data_x['close_comments']; $auto_delete_message = $data_x['auto_delete_message']; $period_delete_message = $data_x['period_delete_message']; $value_delete_message = $data_x['value_delete_message']; $delete_sign_source = $data_x['delete_sign_source']; $valid_sing_post = $data_x['valid_sing_post']; $inline_copy = $data_x['inline_copy']; $inline_copy_url = $data_x['inline_copy_url']; $grabber_content = $data_x['grabber_content']; $delete_emoji = $data_x['delete_emoji']; $sing_image_position = $data_x['sing_image_position']; $pinned_message_type = $data_x['pinned_message_type']; $habr_post_type = $data_x['habr_post_type']; $habr_photo_end = $data_x['habr_photo_end']; $sel = 'selected'; if($timetable == 1){ $timetable_box = 'block;'; } else { $timetable_box = 'none;'; } if($limit_status == 1){ $limit_box = 'block;'; } else { $limit_box = 'none;'; } if($word_send_post_func == 1){ $word_send_x = 'block;'; } else { $word_send_x = 'none;'; } if($length_message_limit == 1){ $length_message_limit_x = 'block;'; } else { $length_message_limit_x = 'none;'; } if($rename_files_func == 1){ $rename_files_show = 'block;'; } else { $rename_files_show = 'none;'; } if($sing_image == 1){ $sing_image_show = 'block;';$image_show = 'block;'; } else { $sing_image_show = 'none;'; $image_show = 'none;'; } if($photo_text_post == 1){ $photo_text_post_show = 'block;'; } else { $photo_text_post_show = 'none;'; } if($pg_type == 1){ $pg_type_box = 'block;'; } else { $pg_type_box = 'none;'; } if($method_send_post == 1){ $inline_url_box = 'block;'; } else { $inline_url_box = 'none;'; } if($inline_keyboard == 1){ $inline_url_data_box = 'block;'; } else { $inline_url_data_box = 'none;'; } if($inline_copy == 1){ $inline_copy_box = 'block;'; } else { $inline_copy_box = 'none;'; } if($grabber_content == 1){ $grabber_content_box = 'block;'; } else { $grabber_content_box = 'none;'; } if($delete_emoji == 1){ $delete_emoji_box = 'block;'; } else { $delete_emoji_box = 'none;'; } if($schedule == 1){ $schedule_box = 'block;'; } else { $schedule_box = 'none;'; } ?> <div class='col-md-12' style='padding:2px 0 16px 15px'> <label><i class="fa fa-bars" ></i> <b>     :</b></label> <img src='<?=root_dir;?>/img/load.gif' id='load_setting' style='display:none;'> <select id='channel_setting' class='select2 channel_setting' style='width:98.6%;'> <? $r = mysqli_query($db,"SELECT `setting_id`,`origin_name`,`publish_name`,`social`,`social_pub` FROM `channels_origin` WHERE `account_id` = '$self_account_id' AND `channel_publish_id` > 0 AND `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { $setting_id = $list['setting_id']; $social = $list['social']; $rx = mysqli_query($db,"SELECT `id` FROM `channels_settings` WHERE `id` = '$setting_id' AND `status` = '0'"); $num = mysqli_num_rows($rx); if($num == 0){ continue; } if($social == 1){ $social_desc = 'VK - '; $ico = ''; } elseif($social == 2) { $social_desc = 'HABR - '; $ico = ''; } elseif($social == 0) { $social_desc = 'TG - '; $ico = ''; } if($list['social_pub'] == 1){ $social_desc_pub = 'VK - '; $ico_p = ''; } else { $social_desc_pub = 'TG:'; $ico_p = ''; } $name_row = $ico." : $social_desc ".$list['origin_name']." | $ico_p : $social_desc_pub ".$list['publish_name']; ?> <option value='<?=$setting_id?>'><?=$name_row;?></option> <?}?> </select> </div> <div class='col-md-5 load_data'> <? $info = " :  \u043f  \u0440  

      ,      ."; ?> <label desc='valid_sing_post'><b> (\u0440\u0431):</b></label> <span id='valid_sing_post_help' title='<?=$info;?>'></span> <input type="text" id="valid_sing_post" class="form-control" value="<?=$valid_sing_post;?>" title='       ,    \u0441 .'> <label desc='spam_filter'><b>-:</b></label> <textarea id='spam_filter' class='form-control save_opt_tx' placeholder=' -' style='margin-bottom:7px;'><?=$spam_filter;?></textarea> <label desc='replace_words'><b> :<br> <span style='color:#c11010;padding:5px;'>#1. |. #2. ==</span> <span title='\u0417 3 . :  *Dark *Word,  ==)'></span></b></label> <textarea id='replace_words' class='form-control save_opt_tx' placeholder='    \u0437'><?=$replace_words;?></textarea> <label desc='filter_links'><b>    :</b></label> <? if(($filter_message == 4) or ($filter_message == 5)){ $dis_links = 'disabled';$link_bg = 'style="background:#f1f1f1"'; } else { $dis_links = '';$link_bg = 'style="background:##f9f9f9"'; } ?> <textarea id='filter_links' class='form-control save_opt_tx' placeholder='    ' <?=$dis_links;?> <?=$link_bg;?>><?=$filter_links;?></textarea> <label desc='sugn_channel'><b> (  ):</b></label> <textarea id='sugn_channel' class='form-control save_opt_tx' placeholder='  .     - Enter. Sugn1|Sugn2|Sugn3|Sugn4 - .<?echo "
{SENDER_CHANNEL} - URL  & {LINK_POST} URL 
{NAME_CHANNEL} -  ";?>' title='1. {SENDER_CHANNEL} -   .<?echo "
";?>2. {LINK_POST} -  (https://t.me/netstalkers/123).<?echo "
";?>3. <a href="{LINK_POST}"></a> -    .<?echo "
{NAME_CHANNEL} -  ."?>'><?=$sugn_channel;?></textarea> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input delete_sign_source" id='delete_sign_source' <?if($delete_sign_source == 1){ echo 'checked'; }?>> <label for='delete_sign_source' class="custom-control-label" title=' \u0441   "\u0414"     \u0441 '><b> -    .</b></label> </div> </div> <label desc='preg_match_list'><b> () \ Regex: </b></label> <button class='link-danger info_regex' href=""> </button> <textarea id='preg_match_list' class='form-control save_opt_tx' placeholder='  ' title=' /([\(|\)|\s|+\d]{10,20})'><?=$preg_match_list;?></textarea> <select id='pg_type'> <option value='0' <?if($pg_type == 0){ echo $sel; }?>>  </option> <option value='1' <?if($pg_type == 1){ echo $sel; }?>>   </option> </select> <div id='block_preg_m' style='display:<?=$pg_type_box;?>'> <label desc='preg_match_text'><b>  (   ): </b></label> <textarea id='preg_match_text' class='form-control save_opt_tx' placeholder='   ' ><?=$preg_match_text;?></textarea> </div> <hr> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input word_send_post_func" id='word_send_post_func' <?if($word_send_post_func == 1){ echo 'checked'; }?>> <label for='word_send_post_func' class="custom-control-label"><b>      </b></label> </div> </div> <div id='box_word_send' style='display:<?=$word_send_x;?>'> <select id='word_send_post_type' class='select2' style='width:100%;'> <option value='0' <?if($word_send_post_type == 0){ echo $sel; }?>>  </option> <option value='1' <?if($word_send_post_type == 1){ echo $sel; }?>>  </option> </select><p> <textarea id='word_send_post' class='form-control' style='margin-top:11px;' title='   ,   ' ><?=$word_send_post;?></textarea> </div> <div class="form-check-inline" id='rename_files_func_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input rename_files_func" id='rename_files_func' <?if($rename_files_func == 1){ echo 'checked'; }?>> <label for='rename_files_func' class="custom-control-label"><b> -</b></label> </div> </div> <div id='box_rename_files' style='display:<?=$rename_files_show;?>'> <b> -(|)  :</b> <textarea id='word_rename_files' class='form-control' style='margin-top:11px;' placeholder='<? echo "FileName|MyName -  
@Username|@Myusername -  username  
Faith|False illusion -  ";?>' ><?=$word_rename_files;?></textarea> </div> <div class="form-check-inline" style='width:90%;'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input sing_image" id='sing_image' <?if($sing_image == 1){ echo 'checked'; }?>> <label for='sing_image' class="custom-control-label"><b> (\u0430)</b></label> </div> </div> <div id='box_sing_image' style='padding-bottom:24px;display:<?=$sing_image_show;?>'> <div class='col-md-12'> <label><b>:</b></label> <select id='sing_image_position' class='select2' style='width:100%;'> <option value='0' <?if($sing_image_position == 0){ echo $sel; }?>>   </option> <option value='1' <?if($sing_image_position == 1){ echo $sel; }?>>   </option> <option value='2' <?if($sing_image_position == 2){ echo $sel; }?>>   </option> </select> <label><i class="fa fa-info-circle"></i> <b>.PNG</b> (150pxpx)  :</label> <div class="input-group"> <div class="input-group-prepend"> <span class="input-group-text" id="sing_image_png"><i class="fa fa-picture-o"></i> .PNG</span> </div> <div class="custom-file"> <form id='sing_image_f'> <input type="file" class="custom-file-input" id="sing_image_png" name='sing_image_png' aria-describedby="sing_image_png"> <label class="custom-file-label" for="sing_image_png"><i class="fa fa-picture-o"></i></label> </form> </div> </div> <? if(!empty($sing_image_png)) { $bg_png = "background:url(http://".$_SERVER['SERVER_ADDR']."/".download_dir.'/'.$sing_image_png.') no-repeat center;'; $image_png_show = 'block;'; }else { $bg_png = '';$image_png_show = 'none;'; } ?> <div id='image_logo' style='display:<?=$image_png_show.$bg_png;?>'><i class="fa fa-trash del_sing_png" title='' style='display:<?=$image_png_show;?>;'></i></div> <div id='upload_sign' style='display:none;'></div> <div class='info_png'>C <b>.png:</b> <a href='https://gfto.ru/index/generator_cyberpunk_text_effect/0-148' target='_black' class='link_png'>Link_1</a> | <a href='https://fonttextup.com/wave-neon-logo-editor.html' target='_black' class='link_png'>Link_2</a> | <a href='https://textdrom.com/neon-png-text.html' target='_black' class='link_png'>Link_3</a> </div> </div> </div> <div class="form-check-inline" style='width:90%;' id='photo_text_post_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input photo_text_post" id='photo_text_post' <?if($photo_text_post == 1){ echo 'checked'; }?>> <label for='photo_text_post' class="custom-control-label"><b>   </b></label> </div> </div> <div id='box_photo_text_post' style='padding-bottom:24px;display:<?=$photo_text_post_show;?>'> <div class='col-md-12'> <label><i class="fa fa-info-circle"></i> <b>.PNG\JPG</b>  :</label> <div class="input-group"> <div class="input-group-prepend"> <span class="input-group-text" id="photo_text_post_form"><i class="fa fa-picture-o"></i> .PNG\JPG</span> </div> <div class="custom-file"> <form id='photo_text_post_f'> <input type="file" class="custom-file-input" id="photo_text_post_form" name='photo_text_post_form' aria-describedby="photo_text_post_form"> <label class="custom-file-label" for="photo_text_post_form"><i class="fa fa-picture-o"></i></label> </form> </div> </div> <? if(!empty($photo_text_post_image)) { $bg_png = "background:url(http://".$_SERVER['SERVER_ADDR']."/".download_dir.'/'.$photo_text_post_image.') no-repeat center;'; $photo_text_post_show = 'block;'; }else { $bg_png = '';$photo_text_post_show = 'none;'; } ?> <div id='photo_text_post_view' style='display:<?=$photo_text_post_show.$bg_png;?>'><i class="fa fa-trash del_photo_text_post" title='' style='display:<?=$photo_text_post_show;?>;'></i></div> <div id='upload_photo_text_post' style='display:none;'></div> </div> </div> </div> <div class='col-md-5 load_data' style='max-width:57%;'> <div id='method_send_post_block'> <label><b>  :</b></label> <select id='method_send_post' class='select2' style='width:100%;'> <option value='0' <?if($method_send_post == 0){ echo $sel; }?>>   telegram </option> <option value='1' <?if($method_send_post == 1){ echo $sel; }?>>  (),   tg bot </option> </select> </div> <div id='inline_url_block' style='display:<?=$inline_url_box;?>'> <div class="alert alert-success info_sendbot" style='text-align:justify;'> <b>:</b> \u0412\u0410\u0424\u0410( inline)\u0422.<br><b> :</b> 50MB.<br><b><u>:</u></b> <b><?=$bot_username;?></b><?if(!empty($bot_token)){?>    .<?}?></div> <div id='forward_max_size'> <label title='  50 - ,,,  10 - '><b>  <code class='maxf'>10(</code>   \u041c:</b></label> <select id='method_send_max_file' class='select2' style='width:100%;'> <option value='0' <?if($method_send_max_file == 0){ echo $sel; }?>>  telegram (  )</option> <option value='1' <?if($method_send_max_file == 1){ echo $sel; }?>>  </option> </select> </div> <label style='margin-top:14px;'><b> :</b></label><br> <div class='col-md-12 load_data' style='padding:0;'> <div class='col-md-2 load_data' style='padding:0;'> <label> :</label> </div> <div class='col-md-3 load_data' style='display:inline-flex;'> <div class="form-check-inline" > <div class="custom-control custom-switch spoiler_type_inf"> <input type="checkbox" class="custom-control-input spoiler_bot_photo" id='spoiler_bot_photo' <?if($spoiler_bot_photo == 1){ echo 'checked'; }?>> <label for='spoiler_bot_photo' class="custom-control-label"><b></b></label> </div> </div> <div class="form-check-inline" > <div class="custom-control custom-switch spoiler_type_inf"> <input type="checkbox" class="custom-control-input spoiler_bot_video" id='spoiler_bot_video' <?if($spoiler_bot_video == 1){ echo 'checked'; }?>> <label for='spoiler_bot_video' class="custom-control-label"><b></b></label> </div> </div> </div> </div> <div class="form-check-inline" > <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input protect_content_bot" id='protect_content_bot' <?if($protect_content_bot == 1){ echo 'checked'; }?>> <label for='protect_content_bot' class="custom-control-label"><b>  </b></label> </div> </div> <div class="form-check-inline" > <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input inline_keyboard" id='inline_keyboard' <?if($inline_keyboard == 1){ echo 'checked'; }?>> <label for='inline_keyboard' class="custom-control-label"><b> inline    :</b></label> </div> </div> <textarea id="inline_url_data" class="form-control inline_url_data" style='display:<?=$inline_url_data_box;?>' placeholder="<?echo "  + 
ClickMe + https://google.com

[{'text':'test','url':'https://t.me/dev'}]]'";?>" title='    json'><?=$inline_url_data;?></textarea> <div class="form-check-inline" id='inline_copy_box' > <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='inline_copy' <?if($inline_copy == 1){ echo 'checked'; }?>> <label for='inline_copy' class="custom-control-label" title='    text\link inline '><b> inline </b></label> </div> </div> <div id="inline_copy_url_box" style="margin-left:24px;display:<?=$inline_copy_box;?>"> <label style='margin:0;'><b>  :</b></label> <input type="text" class="form-control form-control-sm" id="inline_copy_url" value="<?=$inline_copy_url;?>"> </div> <hr> </div> <label><b> </b></label> <select id='filter_message' class='select2' style='width:100%;'> <option value='0' <?if($filter_message == 0){ echo $sel; }?>> </option> <option value='1' <?if($filter_message == 1){ echo $sel; }?>>    </option> <option value='2' <?if($filter_message == 2){ echo $sel; }?>>   t.me/username* , t.me/joinchat/XXXX*  @Username*</option> <option value='3' <?if($filter_message == 3){ echo $sel; }?>>    c t.me/name*  t.me/joinchat/XXXX*</option> <option value='4' <?if($filter_message == 4){ echo $sel; }?>>   </option> <option value='5' <?if($filter_message == 5){ echo $sel; }?>>      ()</option> </select> <div class='replace_link_box' <?if($filter_message <> 5){ echo 'style="display:none;"';} ?>> <? if(($filter_message == 5) && ($enable_text_message == 1)){ $dis = 'disabled'; } else { $dis = ''; } ?> <label><b>  :</b></label> <input type="text" class="form-control form-control-sm" id='replace_link' value='<?=$replace_link;?>' <?=$dis;?>> </div> <div id='box_ignore_post_type'> <label><b> </b></label> <select id='ignore_post_type' class='select2' style='width:100%;'> <option value='0' <?if($ignore_post_type == 0){ echo $sel; }?>> </option> <optgroup label=':'> <option value='1' <?if($ignore_post_type == 1){ echo $sel; }?>>   (  )</option> <option value='2' <?if($ignore_post_type == 2){ echo $sel; }?>>    </option> <option value='3' <?if($ignore_post_type == 3){ echo $sel; }?>>   ( )</option> <option value='4' <?if($ignore_post_type == 4){ echo $sel; }?>>   (  )</option> <option value='5' <?if($ignore_post_type == 5){ echo $sel; }?>>    </option> <option value='9' <?if($ignore_post_type == 9){ echo $sel; }?>>    </option> </optgroup> <optgroup label=' :'> <option value='6' <?if($ignore_post_type == 6){ echo $sel; }?>>  ( )</option> <option value='7' <?if($ignore_post_type == 7){ echo $sel; }?>>  \u0444</option> <option value='8' <?if($ignore_post_type == 8){ echo $sel; }?>>  </option> <option value='10' <?if($ignore_post_type == 10){ echo $sel; }?>>    (\u0432\u0444)</option> <option value='11' <?if($ignore_post_type == 11){ echo $sel; }?>>  c </option> <option value='12' <?if($ignore_post_type == 12){ echo $sel; }?>>  \u0432</option> </optgroup> </select> </div> <? if(empty($chat_gpt_key)){ $info_w = "<span style='font-size:10px;color:red;' title=' API KEY ChatGTP   -  '> - : API KEY ChatGTP!</span>"; } else { $info_w = ''; } ?> <label><b>    <?=$info_w;?></b></label> <select id='translate_lang' class='select2' style='width:100%;'> <option value='0' <?if(empty($translate_lang)){ echo $sel; }?>> </option> <? $arr = explode("|",$languages); foreach($arr as $val) { ?> <option value='<?=$val;?>' <?if($val == $translate_lang){ echo $sel; }?>><?=$val?></option> <?}?> </select> <div id='habr_post_box' style='display:none;'> <label><b> :</b></label> <select id='habr_post_type' class='select2' style='width:100%;'> <option value='0' <?if($habr_post_type == 0){ echo $sel; }?>> ( ,)</option> <option value='1' <?if($habr_post_type == 1){ echo $sel; }?>>  ( ,,)</option> </select> <div class="form-check-inline" id='link_read_box'><p> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='link_read_add' <?if($link_read_add == 1){ echo 'checked'; }?>> <label for='link_read_add' class="custom-control-label" title='        \u043d'><b> :  ..</b></label> </div> </div> <div class="custom-control custom-switch" style='margin-top:8px;'> <input type="checkbox" class="custom-control-input save_opt" id='habr_photo_end' <?if($habr_photo_end == 1){ echo 'checked'; }?>> <label for='habr_photo_end' class="custom-control-label" title='      '><b>    ( )</b></label> </div> </div> <hr> <div class='col-md-5 chk_inline' style='padding:0'> <label><b>  :</b></label><br> <div class="form-check-inline" id='filter_inline_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='filter_inline' <?if($filter_inline == 1){ echo 'checked'; }?>> <label for='filter_inline' class="custom-control-label" title='    inline     inline  ()'><b>    inline </b></label> </div> </div> <div class="form-check-inline" id='box_skip_text'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input skip_text save_opt" id='skip_text' <?if($skip_text == 1){ echo 'checked'; }?>> <label for='skip_text' class="custom-control-label"><b>    </b></label> </div> </div> <div class="form-check-inline" id='reply_post_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='reply_post' <?if($reply_post == 1){ echo 'checked'; }?>> <label for='reply_post' class="custom-control-label"><b> (Reply)</b></label> </div> </div> <div class="form-check-inline" id='send_text_no_media_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='send_text_no_media' <?if($send_text_no_media == 1){ echo 'checked'; }?>> <label for='send_text_no_media' class="custom-control-label"><b>  ( )</b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='post_no_webpage' <?if($post_no_webpage == 1){ echo 'checked'; }?>> <label for='post_no_webpage' class="custom-control-label"><b>   </b></label> </div> </div> <div class="form-check-inline" id='box_ignore_album'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='ignore_album' <?if($ignore_album == 1){ echo 'checked'; }?>> <label for='ignore_album' class="custom-control-label"><b> -</b></label> </div> </div> <div class="form-check-inline" id='box_ignore_audio'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='ignore_audio' <?if($ignore_audio == 1){ echo 'checked'; }?>> <label for='ignore_audio' class="custom-control-label"><b> -</b></label> </div> </div> <div class="form-check-inline" id='round_msg_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='round_msg' <?if($round_msg == 1){ echo 'checked'; }?>> <label for='round_msg' class="custom-control-label"><b> VLOG ()</b></label> </div> </div> <div class="form-check-inline" id='pinned_message_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='pinned_message' <?if($pinned_message == 1){ echo 'checked'; }?>> <label for='pinned_message' class="custom-control-label"><b>   </b></label> </div> <div id='pinned_message_type_box' style='margin:-4px 0 3px 38px;display:none;'> <label> :</label> <select id='pinned_message_type' class='select2' style='width:100%;'> <option value='0' <?if($pinned_message_type == 0){ echo "selected"; }?>></option> <option value='1' <?if($pinned_message_type == 1){ echo "selected"; }?>>  </option> <option value='2' <?if($pinned_message_type == 2){ echo "selected"; }?>>  </option> <option value='3' <?if($pinned_message_type == 3){ echo "selected"; }?>> </option> </select> </div> </div> <div class="form-check-inline" id='sticker_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='sticker' <?if($sticker == 1){ echo 'checked'; }?>> <label for='sticker' class="custom-control-label"><b> </b></label> </div> </div> </div> <div class='col-md-5 chk_inline' id='update_post_event_box' style='max-width:56%;'> <label><b> :</b></label><br> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='update_message' <?if($update_message == 1){ echo 'checked'; }?>> <label for='update_message' class="custom-control-label" title='       '><b>    </b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='delete_message' <?if($delete_message == 1){ echo 'checked'; }?>> <label for='delete_message' class="custom-control-label" title='       '><b>    </b></label> </div> </div> <div class="form-check-inline" id='limit_send_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input auto_delete_message" id='auto_delete_message' <?if($auto_delete_message == 1){ echo 'checked'; }?>> <label for='auto_delete_message' class="custom-control-label" title='-     '><b>-  N- </b></label> </div> </div> <div id='delete_message_box' <?if($auto_delete_message == 0){ echo 'style="display:none;"'; }?>> <div class="col-md-3"> <label> :</label> <input type="number" class="form-control value_delete_message" value="<?=$value_delete_message;?>" min="1" style="width:102px;"> </div> <div class="col-md-5"> <label style='margin:0;'> :</label><br> <label title="  " class='info_p'> <input type="radio" class="period_delete_message" name="period_delete_message" value="0" <?if($period_delete_message == 0){ echo "checked";}?>>  </label><br> <label title="  " class='info_p'> <input type="radio" class="period_delete_message" name="period_delete_message" value="1" <?if($period_delete_message == 1){ echo "checked";}?>>  </label> </div> </div> <div class="form-check-inline" id='grabber_content_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input grabber_content save_opt" id='grabber_content' <?if($grabber_content == 1){ echo 'checked'; }?>> <label for='grabber_content' class="custom-control-label" title='      '><b> </b></label> </div> <div class="col-md-11 grabber_content_info" style='padding-left:36px;display:<?=$grabber_content_box;?>'> <label><b>   :</b></label> <? $saved = download_dir.'/grabber_content'; ?> <input type="text" class="form-control path_grabber" readonly value="<?=$saved;?>" > </div> </div> </div> <div id='close_comments_box' <?if($social_pub == 0){ echo 'style="display:none;"'; }?>> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='close_comments' <?if($close_comments == 1){ echo 'checked'; }?>> <label for='close_comments' class="custom-control-label"><b>  </b></label> </div> </div> </div> <hr> <div class='col-md-6 chk_inline' style='padding:0;display:inline-table;'> <label><b> :</b></label><br> <div class="form-check-inline" id='box_enable_text_message'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input enable_text_message" id='enable_text_message' <?if($enable_text_message == 1){ echo 'checked'; }?>> <label for='enable_text_message' class="custom-control-label"><b>   c    </b></label> </div> </div> <textarea id='my_text_message' class='form-control' <?if($enable_text_message == 0){ echo 'style="display:none;"'; }?> placeholder='It1|It2|Kill4me|12345 -  ' title=' | 1|2|3|4|5'><?=$my_text_message;?></textarea> <div class="form-check-inline" id='replace_username_stat_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input replace_username_stat" id='replace_username_stat' <?if($replace_username_stat == 1){ echo 'checked'; }?>> <label for='replace_username_stat' class="custom-control-label"><b>  @username    </b></label> </div> </div> <input type='text' id='replace_username' class='form-control' value='<?=$replace_username;?>' <?if($replace_username_stat == 0){ echo 'style="display:none;"'; }?>> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input timetable" id='timetable' <?if($timetable == 1){ echo 'checked'; }?>> <label for='timetable' class="custom-control-label"><b> </b></label> </div> </div> <div id='time_box' style='display:<?=$timetable_box;?>'> <label><b>  [<?=date('H:i');?>]:</b></label> <div class="row time_box_row" > <? $time_post = explode('|',$data_x['time_post']); foreach($time_post as $val) { $checked_[$val] = true; } for($q=0;$q<24;$q++) { if($q < 10){ $q = "0".$q; } if($checked_[$q]){ $sel = 'checked'; } else { $sel = ''; } ?> <div class="custom-control custom-checkbox col-sm-2"> <input type="checkbox" class="custom-control-input time_post hour<?=$q;?>" id='chk<?=$q;?>' value='<?=$q;?>' <?=$sel;?>> <label for='chk<?=$q;?>' class="custom-control-label"><?=$q;?>:00</label> </div> <?}?> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input limit_status" id='limit_status' <?if($limit_status == 1){ echo 'checked'; }?>> <label for='limit_status' class="custom-control-label"><b>    </b></label> </div> </div> <div id='limit_box' style='display:<?=$limit_box;?>'> <div class='col-md-4'> <label> :</label> <input type='number' class='form-control limit_count_post' value='<?=$data_x['limit_post'];?>' min='1' style='width:102px;'> </div> <div class='col-md-4'> <label> :</label> <input type='number' class='form-control limit_hours' value='<?=$data_x['limit_hours'];?>' min='1' style='width:102px;'> </div> </div> <div class="form-check-inline" id='forward_message_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input forward_message save_opt" id='forward_message' <?if($forward_message == 1){ echo 'checked'; }?> > <label for='forward_message' class="custom-control-label"><b>ForwardMessage</b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input length_message_limit" id='length_message_limit' <?if($length_message_limit == 1){ echo 'checked'; }?>> <label for='length_message_limit' class="custom-control-label"><b>  -   </b></label> </div> </div> <div id='length_message_limit_box' style='display:<?=$length_message_limit_x;?>'> <div class='col-md-3'> <label>- :</label> <input type='number' class='form-control length_message' value='<?=$data_x['length_message']?:0;?>' min='20' style='width:102px;'> </div> <div class='col-md-5'> <label>, :</label><br> <label title=' '> <input type='radio' class='type_check_m' name='type_check_m' value='1' <?if($type_check_m == 1){ echo 'checked'; }?>>  </label><br> <label title=' '> <input type='radio' class='type_check_m' name='type_check_m' value='2' <?if($type_check_m == 2){ echo 'checked'; }?>>  </label> </div> </div> <div class="form-check-inline" id='schedule_show' > <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input schedule" id='schedule' <?if($schedule == 1){ echo 'checked'; }?> > <label for='schedule' class="custom-control-label"><b> ( )</b></label> <div id='schedule_box' style='display:<?=$schedule_box;?>'> <label><b>:</b></label> <select id='type_schedule' class='select2' style='width:100%;margin-bottom:10px;'> <option value='0' <?if($type_schedule == 0){ echo $sel; }?>>  N-</option> <option value='1' <?if($type_schedule == 1){ echo $sel; }?>>   \u0432</option> </select> <div id='schedule_1'> <label style='margin:0;'><b>1 -  1 . 2-3-4-5 -  :</b></label><br> <input type='text' class='form-control input_schedule schedule_date' id='schedule_date' name='schedule_date' value='<?=$schedule_date;?>' > </div> <div id='schedule_2' style='display:none;'> <label style='margin:0;'><b>  \u0432</b>:</label><br> <input type='text' class='form-control input_schedule schedule_date' id='schedule_date_picker' name='schedule_date_icker' value='<?=$schedule_date_icker;?>' placeholder='   '> </div> </div> </div> </div> </div> <div class='col-md-5' style='display:inline-table;'> <label><b> :</b></label><br> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input duplicat_dis save_opt" id='duplicat_dis' <?if($duplicat_dis == 1){ echo 'checked'; }?>> <label for='duplicat_dis' class="custom-control-label"><b>   </b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input del_empty_line save_opt" id='del_empty_line' <?if($del_empty_line == 1){ echo 'checked'; }?>> <label for='del_empty_line' class="custom-control-label" title='    >2'><b>  \u043f</b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input hash_tags save_opt" id='hash_tags' <?if($hash_tags == 1){ echo 'checked'; }?>> <label for='hash_tags' class="custom-control-label" ><b> </b></label> </div> </div> <div class="form-check-inline" id='entities_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input entities save_opt" id='entities' <?if($entities == 1){ echo 'checked'; }?>> <label for='entities' class="custom-control-label" title='   -  \  \   '><b>  </b></label> </div> </div> <div class="form-check-inline" id='limit_send_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input limit_send" id='limit_send' <?if($limit_send == 1){ echo 'checked'; }?>> <label for='limit_send' class="custom-control-label" title='   1 '><b>   1 </b></label> <div id='limit_send_f' style='display:<?if($limit_send == 0){?>none;<?}?>'> <label> :</label><br> <input type='number' class='form-control limit_send_posts' id='limit_send_posts' name='limit_send_posts' value='<?=$limit_send_posts;?>' min='0' style='width:107px;'> </div> </div> </div> <div class="form-check-inline" id='grabber_username_box' style="display:none;"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input grabber_username" id='grabber_username' <?if($grabber_username == 1){ echo 'checked'; }?>> <label for='grabber_username' class="custom-control-label" title='Get usernames users in message text'><b>Grabber Username</b></label> </div> </div> <div class="form-check-inline" id='delete_emoji_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input delete_emoji" id='delete_emoji' <?if($delete_emoji == 1){ echo 'checked'; }?>> <label for='delete_emoji' class="custom-control-label"><b> Premium Emoji</b></label> </div> </div> </div> <hr> <button class='btn btn-primary save_setting_channel' style='width:100%;' type='1'><i class="fa fa-floppy-o" ></i>   </button><p> <button class='btn btn-primary save_setting_channel_all' style='width:100%' type='2'><i class="fa fa-floppy-o" ></i>   </button> </div> </div> </div> <div id="setting_channel_chat_gpt" class="container tab-pane fade" > <div class='col-md-12' style='padding:0;'> <? $r1 = mysqli_query($db,"SELECT `setting_id` FROM `channels_origin` WHERE `account_id` = '$self_account_id' AND `user_id` = '$user_id' ORDER BY `id` LIMIT 0,1"); $data_s = mysqli_fetch_assoc($r1); $setting_id_1 = $data_s['setting_id']; $rx = mysqli_query($db,"SELECT `filter_links_gpt`,`replace_words_gpt`,`config_gpt`,`rewriting_message_gpt`, `type_filter_gpt`,`gpt_filter_text`,`filter_text_gpt_method`,`config_gpt_yandex` FROM `channels_settings` WHERE `id` = '$setting_id_1'"); $data_x = mysqli_fetch_assoc($rx); $filter_links = $data_x['filter_links_gpt']; $replace_words = $data_x['replace_words_gpt']; $config_gpt = $data_x['config_gpt']; $rewriting_message_gpt = $data_x['rewriting_message_gpt']?:' '; $type_filter_gpt = $data_x['type_filter_gpt']; $gpt_filter_text = $data_x['gpt_filter_text']; $text_gpt_method = $data_x['filter_text_gpt_method']; $config_gpt_yandex = $data_x['config_gpt_yandex']; $neural_network = get_setting_account('neural_network',$self_account_id); $config_gpt_json = json_decode($config_gpt,true); if((empty($config_gpt)) or (empty($config_gpt_json))) { $config_gpt = "model=gpt-3.5-turbo
max_tokens=1024
temperature=1
top_p=0.2
frequency_penalty=0.3
presence_penalty=0.2
"; }else { $config_gpt = ''; foreach($config_gpt_json as $name=>$val) { $config_gpt .= "$name=$val
"; } } $config_gpt_ya = json_decode($config_gpt_yandex,true); if((empty($config_gpt_yandex)) or (empty($config_gpt_ya))) { $config_gpt_param = "stream=false
maxTokens=1024
temperature=0.5
"; }else { $config_gpt_param = ''; foreach($config_gpt_ya as $name=>$val) { $config_gpt_param .= "$name=$val
"; } } if($type_filter_gpt == 1){ $dis_filt = ''; $dis_content = 'disabled';$css_faq = 'style="opacity:0.4;"'; } elseif($type_filter_gpt == 2){ $dis_filt = 'disabled'; $dis_content = '';$css_faq = ''; } else{ $dis_filt = 'disabled'; $dis_content = 'disabled';$css_faq = 'style="opacity:0.4;"'; } ?> <div class='col-md-12' style='padding:2px 0 16px 15px'> <label><i class="fa fa-bars" ></i> <b>     :</b></label> <img src='<?=root_dir;?>/img/load.gif' id='load_setting_gpt' style='display:none;'> <select id='channel_setting_gpt' class='select2 channel_setting' style='width:98.6%;'> <? $r = mysqli_query($db,"SELECT `setting_id`,`origin_name`,`publish_name`,`social`,`social_pub` FROM `channels_origin` WHERE `account_id` = '$self_account_id' AND `channel_publish_id` > 0 AND `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { $setting_id = $list['setting_id']; $social = $list['social']; $rx = mysqli_query($db,"SELECT `id` FROM `channels_settings` WHERE `id` = '$setting_id' AND `status` = '0'"); $num = mysqli_num_rows($rx); if($num == 0){ continue; } if($social == 1){ $social_desc = 'VK - '; $ico = ''; } elseif($social == 2) { $social_desc = 'HABR - '; $ico = ''; } elseif($social == 0) { $social_desc = 'TG - '; $ico = ''; } if($list['social_pub'] == 1){ $social_desc_pub = 'VK - '; $ico_p = ''; } else { $social_desc_pub = 'TG:'; $ico_p = ''; } $name_row = $ico." : $social_desc ".$list['origin_name']." | $ico_p : $social_desc_pub ".$list['publish_name']; ?> <option value='<?=$setting_id?>'><?=$name_row;?></option> <?}?> </select> </div> <div class='col-md-4 load_data_gpt' style='padding-left:15px;'> <div class="form-check-inline"> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input type_filter_gpt save_opt" name='type_filter_gpt1' id='type_filter_gpt1' value='1' <?if($type_filter_gpt == 1){ echo 'checked'; }?>> <label for='type_filter_gpt1' class="custom-control-label" title=''><b> </b></label> </div> </div><hr> <label desc='replace_words_gpt'><b>Prompt - \u0417(,,):<br></b></label> <textarea id='replace_words_gpt' class='form-control' placeholder='<?="     
     
    
  username   @
  unicode 
 ,     ";?>' <?=$dis_filt;?>><?=$replace_words;?></textarea> <label desc='filter_links'><b>Prompt Command -     :</b></label> <textarea id='filter_links_gpt' class='form-control' placeholder='<?="    
    vk.com";?>' <?=$dis_filt;?>><?=$filter_links;?></textarea> </div> <div class='col-md-4 load_data_gpt' style='padding-left:13px;'> <div class="col-md-12 clear_p"> <div class="form-check-inline"> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input type_filter_gpt save_opt" name='type_filter_gpt2' id='type_filter_gpt2' value='2' <?if($type_filter_gpt == 2){ echo 'checked'; }?>> <label for='type_filter_gpt2' class="custom-control-label" title='  '><b> </b></label> </div> </div><hr> <label><b>Prompt Command:</b></label> <input type="text" class="form-control rewriting_message_gpt" id='rewriting_message_gpt' title='  - - , ,   ' <?=$dis_content;?> value="<?=$rewriting_message_gpt;?>"> <label desc='replace_words_gpt'><b> :<br></b></label><br> <textarea id='config_gpt' class='form-control' <?=$dis_content;?> <?if($neural_network > 0){ echo "style='display:none'";}?>><?=$config_gpt;?></textarea> <textarea id='config_gpt_yandex' class='form-control' <?=$dis_content;?> <?if($neural_network <> 1){ echo "style='display:none'";}?>><?=$config_gpt_param;?></textarea> <div id='info_gpt_config' <?if($neural_network > 0){ echo "style='display:none'";}?>> <label><code>model</code> -  chatGPT.</label> <label><code>max_tokens[0.01-2048]</code> - - .</label> <label><code>temperature[0.01-1]</code> - 1    .</label> <label><code>top_p[0.01-1]</code> -     \u043f .</label> <label><code>frequency_penalty[0.01-2]</code> 2 -  \u043f.</label> <label><code>presence_penalty[0.01-2]</code> 2 -   .</label> </div> <div id='info_gpt_config_yandex' <?if($neural_network <> 1){ echo "style='display:none'";}?>> <label><code>stream[false|true] </code> -    .</label> <label><code>temperature[0.01-1]</code> -   ,      .</label> <label><code>maxTokens[0.01-1]</code> -  - ..</label> </div> </div> </div> <div class='col-md-3 load_data_gpt filter_gpt3' style='padding-left:13px;max-width:30%;'> <label class='info_gpt_f'>      :</label> <label style='padding-right:10px;'><b> :</b></label> <div class="custom-control custom-radio custom-control-inline"> <input type="radio" class="custom-control-input f_text_gpt_method" id="gpt_method0" name="filter_text_gpt_method" value="0" <?if($text_gpt_method == 0){ echo 'checked'; }?>> <label class="custom-control-label" for="gpt_method0" title='  '></label> </div> <div class="custom-control custom-radio custom-control-inline"> <input type="radio" class="custom-control-input f_text_gpt_method" id="gpt_method1" name="filter_text_gpt_method" value="1" <?if($text_gpt_method == 1){ echo 'checked'; }?>> <label class="custom-control-label" for="gpt_method1" title='  '></label> </div> <label><b>Prompt Command - :</b></label> <textarea id='filter_text_gpt' class='form-control' title='    ' placeholder='<?="  
 
 
 
 
 
 
   
  ";?>'><?=$gpt_filter_text;?></textarea> </div> <hr> <button class='btn btn-primary save_setting_channel_gpt' style='width:30%;' type='1'><i class="fa fa-floppy-o" ></i>  </button> <button class="btn btn-primary save_setting_channel_all_gpt" style="width:30%" type="2"><i class="fa fa-floppy-o"></i>   </button> <button class="btn btn-primary save_setting_channel_all_gpt" style="width:30%" type="3" title='   ,     GPT '><i class="fa fa-floppy-o"></i>      GPT </button> <p> </div> </div> <div id="dump_opt" class="container tab-pane fade" style='max-width:100%;'> <div class='col-md-12 clear_p'> <label id='backup_info'>  :</label> <div class="form-check-inline" style='display:inline-block;'> <div class="custom-control custom-checkbox col-sm-12 dump_elem"> <input type="radio" class="custom-control-input type_dump" name="type_dump" id="type_dump1" value="0" checked> <label for="type_dump1" class="custom-control-label">  ( \u0431)</label> </div> </div> <div class="form-check-inline" style='display:inline-block;'> <div class="custom-control custom-checkbox col-sm-12 dump_elem"> <input type="radio" class="custom-control-input type_dump" name="type_dump" id="type_dump2" value="1"> <label for="type_dump2" class="custom-control-label"> ( ) </label> </div> </div> <hr> <div id='dump_1' style='display:none;'> <div class="col-md-5 clear_p" > <h5><b> :</b></h5> <label><b>.  :</b></label> <select class='select2' id='export_account' style='width:100%;margin-bottom:6px;'> <? $r = mysqli_query($db,"SELECT `id`,`profile_tg`,`name` FROM `accounts_setting` WHERE `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { if(!empty($list['name'])){ $name = $list['name']; }else { $name = $list['profile_tg']; } if($list['id'] == $self_account_id){ $sel = 'selected'; } else { $sel = ''; } ?><option value='<?=$list['id'];?>' <?=$sel;?>><?=$name;?></option><? ?> <?}?> </select><hr> <label><b><i class="fa fa-question-circle" ></i>  :</b></label><br> <label><b>  </b></label><br> <label><b>  </b></label><br> <label><b>  </b></label><br> <label><b>  </b></label><br> <button type="button" class="btn btn-danger btn-xs export_run"><i class="fa fa-save" ></i> </button> <img src='<?=root_dir;?>/img/load.gif' id='load_export' class='load_ex' style='display:none'> </div> <div class='col-md-6 clear_p' style='display:inline-table;'> <h5><b> :</b></h5> <label><b> :</b></label> <select class='select2' id='import_account' style='width:100%;margin-bottom:6px;'> <? $r = mysqli_query($db,"SELECT `id`,`profile_tg`,`name` FROM `accounts_setting` WHERE `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { if(!empty($list['name'])){ $name = $list['name']; }else { $name = $list['profile_tg']; } if($list['id'] == $self_account_id){ $sel = 'selected'; } else { $sel = ''; } ?><option value='<?=$list['id'];?>' <?=$sel;?>><?=$name;?></option><? ?> <?}?> </select><hr> <div class='col-md-6 clear_p'> <label for="exampleFormControlFile1"><b><i class="fa fa-file"></i>  .:</b></label> <form id='upload_import_file'> <input type='file' name='file' class='file_import'> <img src='<?=root_dir;?>/img/load.gif' id='load_import' class='load_ex' style='display:none'> </form> </div> <? $r = mysqli_query($db,"SELECT `id`,`channel_url`,`name` FROM `join_exists` WHERE `id_account` = '$self_account_id' AND `ready` = '1' AND `user_id` = '$user_id'"); $all_join = mysqli_num_rows($r); ?> <?if($all_join > 0){?> <br><label><b><i class="fa fa-exclamation" ></i>   <u> </u>   : <span id='all_join'><?=$all_join;?></span></b></label> <table class="table table-bordered table-striped table_x1"> <thead> <tr> <th scope="col" class='opt_col' ></th> <th scope="col" class='opt_col invisible_'></th> <th scope="col" class='opt_col' style='width:41px;'>#</th> </tr> </thead> <tbody id='channels_join'> <? while($list = mysqli_fetch_array($r)) { $u = "<a href='".$list['channel_url']."' target='_blank'>".$list['name']."</a>"; ?> <tr class='join_wait<?=$list['id'];?>'> <td><?=$u;?></td> <td> <button type="button" class="btn btn-danger btn-xs join_channel" value='<?=$list['id'];?>'><i class="fa fa-plus-square"></i> </button> <button type="button" class="btn btn-success btn-xs join_exist" value='<?=$list['id'];?>'>  </button> </td> <td class='center'><i class="fa fa-trash del_channel_join" value='<?=$list['id'];?>'></i></td> </tr> <? } ?> </tbody> </table> <?}?> </div> </div> <div id='dump_2'> <div class="col-md-5 clear_p" > <h5><b> :</b></h5> <label><b>:</b></label> <select class='select2' id='export_data' style='width:100%;margin-bottom:6px;'> <option value='1'> (  \  )</option> <option value='2'> </option> <option value='3'> </option> </select><hr> <label><b><i class="fa fa-question-circle" ></i>  :</b></label> <label class='infx inf1'><b>  -</b></label> <label class='infx inf2'><b>   telegram </b></label> <label class='infx inf3'><b>  telegram </b></label> <label class='infx inf4'><b>   (.sql)  \u043d</b></label><br> <button type="button" class="btn btn-danger btn-xs export_data_run"><i class="fa fa-file" ></i> </button> <img src='<?=root_dir;?>/img/load.gif' id='load_export_data' class='load_ex' style='display:none'><br> <a href='' id='dump_link' class="btn btn-success" target='_blank' style='display:none;'><i class="fa fa-save" ></i> </a> </div> </div> </div> </div> <div id="info_user" class="container tab-pane fade" style='max-width:100%;'> <div class='col-md-12 clear_p'> <? $rx = mysqli_query($db,"SELECT `id` FROM `accounts_setting`"); $accounts_tg_all = mysqli_num_rows($rx); $rx = mysqli_query($db,"SELECT `id` FROM `Accounts`"); $accounts_all = mysqli_num_rows($rx); $self_account_id = $_SESSION['self_account_id']; $all_post = 0; $rx = mysqli_query($db,"SELECT `id`,`all_post` FROM `channels_origin` WHERE `account_id` = '$self_account_id'"); $num = mysqli_num_rows($rx); if($num > 0) { while($list = mysqli_fetch_assoc($rx)) { $all_post = $all_post + $list['all_post']; } } $rx = mysqli_query($db,"SELECT `id` FROM `channels_origin` WHERE `account_id` = '$self_account_id'"); $channel_all_ = mysqli_num_rows($rx); ?> <div class="col-md-3 info_user clear_p" > <h5><b> :</b></h5><hr> <label><b> :</b> v8.3</label><br> <label><b>Telegram :</b> <?=$accounts_tg_all;?> .</label><br> <label><b> :</b> <?=$accounts_all;?> .</label><br> <label><b> :</b> <?=$login_;?>.</label><br> </div> <div class="col-md-3 info_user clear_p" > <h5><b> :</b></h5><hr> <label><b> :</b> <?=$all_post;?> .</label><br> <label><b>- :</b> <?=$channel_all_;?> .</label><br> </div> <div class="col-md-5 info_user clear_p" > <h5><b>  :</b></h5><hr> <?=query_get('https://cdn.tposter.top/licence/'.base64_encode($_SERVER['SERVER_ADDR']).'.check');?> </div> </div> </div> </div> </div> </div> <div class="modal fade" id="save_opt_box" tabindex="-1" aria-labelledby="exampleModalLabel" > <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel"> </h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> <div class="modal-body"> <div class="form-group"> <div class='col-md-12 clear_p' > <label><b> :</b></label> <input type="text" id='el_name' class="form-control" readonly> <input type='hidden' id='col_name' value=''> <input type='hidden' id='col_type' value='1'> <hr> <label><i class="fa fa-bars" ></i> <b>    :</b></label><br> <select id='channel_setting_multi' class='select2 channel_setting_multi' style='width:100%;' multiple> <? $r = mysqli_query($db,"SELECT `setting_id`,`origin_name`,`publish_name` FROM `channels_origin` WHERE `account_id` = '$self_account_id' AND `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { ?> <option value='<?=$list['setting_id']?>'>: <?=$list['origin_name']. " |  : ".$list['publish_name'];?></option> <?}?> </select> </div> </div> </div> <div class="modal-footer"> <button class="btn btn-primary multi_save_opt" style="width:100%;"><i class="fa fa-floppy-o"></i> </button> </div> </div> </div> </div> <div class="modal fade" id="add_account" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" > <div class="modal-dialog modal-dialog-centered" role="document" > <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title"><i class="fa fa-user"></i>  <span id='step_info'>  </span></h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> <div class="modal-body"> <div class="col-md-12 box_phone"> <div class="col-md-12 clear_p"> <input type='hidden' value='0' id='task_id_auth'> <div class='col-md-12 clear_p' > <label class='control-label phone_num' ><i class="fa fa-mobile"></i>  :</label> <input type='text' class='form-control form-control-sm' id='phone' placeholder='+XXXXXXXXXXX'> <label><b> :</b></label> <select class='select2 proxy_type_auth' id='proxy_type_auth' style='width:100%;margin-bottom:6px;'> <option value='0'> </option> <option value='1'>SOCKS4 - IPv4</option> <option value='2'>SOCKS5 - IPv4</option> <option value='3'>MTPROTO - IPv6</option> </select> <div id='proxy_input_auth' style='display:none;'> <label><b>:</b></label> <input type="text" class="form-control form-control-sm" id="proxy_auth"> </div><hr> <input type='hidden' id='step_add' value='0'> <button type="button" class="btn btn-primary send_code_auth" ><i class="fa fa-telegram"></i>   </button> <button type="button" class="btn btn-primary cancel_auth" value='0' style='display:none;'></button> <span class='load' id='load_send' style='display:none;'></span> </div> <div id='auth_box' style='display:none;'> <hr> <label class='control-label code_enter'>* :</label> <input type='text' class='form-control form-control-sm' id='code_auth' placeholder='  '> <label class='control-label'>2FA(two-factor authentication):</label> <input type='text' class='form-control form-control-sm 2fa_code' id='2fa_code' placeholder=' ,  '> <button type="button" class="btn btn-primary success_auth"><i class="fa fa-check"></i> </button> <span class='load' id='load_success' style='display:none;'></span> </div> <div id='group_user' style='display:none;'><hr> <label class='control-label'><i class="fa fa-users"></i>  : <span id='all_channel_account'>0</span></label><br> <label class='control-label'><i class="fa fa-bars"></i>  :</label> <select class="joined_group_user"multiple data-style="btn-primary"></select> <a type="button" href="<?=root_dir;?>" class="btn btn-primary import_none"></a> </div> </div> </div> </div> <div class="modal-footer"> </div> </div> </div> </div> <div class="modal fade" id="power_channels" tabindex="-1" aria-labelledby="exampleModalLabel" > <div class="modal-dialog" style='min-width:40%;'> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">  </h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> <div class="modal-body" style='padding:0 4px;'> <div class='col-md-12 join_item'> <div class='col-md-6 clear_p'> <? $r = mysqli_query($db,"SELECT `id`,`channel_url`,`name`,`channel_id` FROM `join_exists` WHERE `type` = '2' AND `ready` = '0' AND `user_id` = '$user_id'"); ?> <table class="table table-bordered table-striped table_join"> <thead> <tr> <th scope="col" class='opt_col'> </th> <th scope="col" class='opt_col' style='width:0px;'>#</th> </tr> </thead> <tbody id='join_list' class='join_list_map2'> <? while($list = mysqli_fetch_assoc($r)) { $id = $list['id']; $name = $list['name']; $u = $list['channel_url']; if($name == 'update'){ continue; } if(intval($u) < 1){ $chaneel_u = '<a href="'.$u.'" target="_blank">'.$name.'</a>'; } else { $chaneel_u = $name; } ?> <tr class='join<?=$id;?>'> <td><?=$chaneel_u;?></td> <td class='center'><i class="fa fa-trash del_channel_join_" value='<?=$list['id'];?>' title=''></i></td> </tr> <?}?> </tbody> </table> </div> <div class='col-md-6 clear_p'> <? $r = mysqli_query($db,"SELECT `id`,`channel_url`,`name`,`channel_id`,`social` FROM `join_exists` WHERE `type` = '1' AND `ready` = '0' AND `user_id` = '$user_id'"); ?> <table class="table table-bordered table-striped table_join"> <thead> <tr> <th scope="col" class='opt_col'> </th> <th scope="col" class='opt_col' style='width:0px;'>#</th> </tr> </thead> <tbody id='join_list' class='join_list_map1'> <? while($list = mysqli_fetch_assoc($r)) { $id = $list['id']; $name = $list['name']; $u = $list['channel_url']; if(intval($u) < 1){ $chaneel_u = '<a href="'.$u.'" target="_blank">'.$name.'</a>'; } else { $chaneel_u = $name; } if($list['social'] == 1){ $social_desc = 'VK: '; } else { $social_desc = 'TG: '; } ?> <tr class='join<?=$id;?>'> <td><?=$social_desc.$chaneel_u;?></td> <td class='center'><i class="fa fa-trash del_channel_join_" value='<?=$list['id'];?>' title=''></i></td> </tr> <?}?> </tbody> </table> </div> </div> </div> <div class="modal-footer"></div> </div> </div> </div> <?if($_SESSION['rang'] == 1){?> <div class="modal fade" id="manager_add_account" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" > <div class="modal-dialog modal-dialog-centered" role="document" > <div class="modal-content" style='background:#2e2d2d;color:#a5a4a1;'> <div class="modal-header"> <h4 class="modal-title"><i class="fa fa-user"></i>   </h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> <div class="modal-body"> <div class="col-md-12"> <label><b>  :</b></label><br> <div id='list_account'></div> <hr> <label class='control-label'><b>Login:</b></label> <input type='text' class='form-control form-control-sm' id='login_user' placeholder='User'> <label class='control-label'><b>Password:</b></label> <input type='text' class='form-control form-control-sm' id='password_user'> <br> <button type="button" class="btn btn-primary create_account" style='width:100%;'><i class="fa fa-check"></i>  </button> </div> </div> </div> </div> </div> <?}?> <div class="modal fade" id="regex_box" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" > <div class="modal-dialog modal-dialog-centered" role="document" style='min-width:45%;'> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title"><i class="fa fa-info"></i>    (<i>for preg_match_all()</i>)</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> <div class="modal-body"> <div class="col-md-12 regex_show"> <label><b>  URL\u0441:</b></label><br> <small class="text-muted"> 1:</small> <a href='https://regex101.com/r/lxzw5n/1' class='regex_view' target='_blank'>Pattern test</a> <pre>/(http|https|ftp):\/\/(\S*)/</pre> <small class="text-muted"> 2:</small> <pre>/https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)</pre> <small class="text-muted"> 3:</small> <pre>/(https?:\/\/).*/</pre> <hr> <label><b>   :</b></label><br> <small class="text-muted"> 1:</small> <pre>/\+?\d{1,4}?[-.\s]?\(?\d{1,3}?\)?[-.\s]?\d{1,4}[-.\s]?\d{1,4}[-.\s]?\d{1,9}/</pre> <small class="text-muted"> 2:</small> <a href='https://regex101.com/r/lH7nV3/1' class='regex_view' target='_blank'>Pattern test</a> <pre>/([\(|\)|\s|+\d]{10,20})/</pre> <hr> <label><b>  email:</b></label><br> <small class="text-muted"> 1:</small> <a href='https://regex101.com/r/1Luvlm/1' class='regex_view' target='_blank'>Pattern test</a> <pre>/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}/i</pre> </div> </div> <div class="modal-footer"> </div> </div> </div> </div> <div class="modal fade" id="def_data_filter_box" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" > <div class="modal-dialog modal-dialog-centered" role="document" > <div class="modal-content filter_style"> <div class="modal-header" style='padding:8px 15px;'> <h4 class="modal-title" style='font-size:13px;'><i class="fa fa-info"></i>  - (  )</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> <div class="modal-body" style='padding:0 13px;'> <div class="col-md-12"> <? $data_filter = get_setting_account('default_data_filter',$self_account_id); $data_filter = base64_decode($data_filter); $data_filter = unicode_char($data_filter); $data_filter = json_decode($data_filter,true); ?> <label desc='def_spam_filter'><b>-:</b></label> <textarea id='def_spam_filter' class='form-control def_opt' placeholder=' -'><?=$data_filter['spam_filter'];?></textarea> <label desc='def_replace_words'><b> :<br> <span title='\u0417 3 . :  *Dark *Word,  ==)'></span></b></label> <textarea id='def_replace_words' class='form-control def_opt' placeholder='    \u0437'><?=$data_filter['replace_words'];?></textarea> <label desc='def_filter_links'><b>    :</b></label> <? if(($filter_message == 4) or ($filter_message == 5)){ $dis_links = 'disabled';$link_bg = 'style="background:#f1f1f1"'; } else { $dis_links = '';$link_bg = 'style="background:##f9f9f9"'; } ?> <textarea id='def_filter_links' class='form-control def_opt' placeholder='    ' <?=$dis_links;?> <?=$link_bg;?>><?=$data_filter['filter_links'];?></textarea> <label desc='def_sugn_channel'><b> (  ):</b></label> <textarea id='def_sugn_channel' class='form-control def_opt' placeholder='   ,     . Sugn1|Sugn2|Sugn3|Sugn4 -  .<?echo "
{SENDER_CHANNEL} -   & {LINK_POST}  
{NAME_CHANNEL} -   ";?>' title='1. {SENDER_CHANNEL} -   .<?echo "
";?>2. {LINK_POST} -  (https://t.me/netstalkers/123).<?echo "
";?>3. <a href="{LINK_POST}"></a> -    .<?echo "
{NAME_CHANNEL} -   ."?>'><?=$data_filter['sugn_channel'];?></textarea> <label><b> () \ Regex: </b></label> <textarea id='def_preg_match_list' class='form-control def_opt' placeholder='  ' title=' /([\(|\)|\s|+\d]{10,20})'><?=base64_decode($data_filter['preg_match_list']);?></textarea> <select id='def_pg_type'> <option value='0' <?if($data_filter['pg_type'] == 0){ echo 'selected'; }?>>  </option> <option value='1' <?if($data_filter['pg_type'] == 1){ echo 'selected'; }?>>   </option> </select> <div id='def_block_preg_m' <?if($data_filter['pg_type'] == 0){?>style='display:none;'<?}?>> <label><b>  (   ): </b></label> <textarea id='def_preg_match_text' class='form-control def_opt' placeholder='   '><?=$data_filter['preg_match_text'];?></textarea> </div> </div> </div> <div class="modal-footer" style='border:none;'><button type="button" class="btn btn-primary btn-xs save_data_filter" style='width:100%;'><i class="fa fa-save"></i> </button> </div> </div> </div> </div> <div class="modal fade" id="similar_channels_box" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" > <div class="modal-dialog modal-dialog-centered" role="document" > <div class="modal-content"> <div class="modal-header" style='background:#40403d;color:#b5b5b5;'> <h4 class="modal-title"><i class="fa fa-search"></i>   </h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> <div class="modal-body" style='padding:0 8px;min-height:118px;'> <div class='col-md-12 '> <label id='label_similar'>Telegram \u0413  :</label> <select class='select2 list_channel_similar' style='width:100%;'> <option value=''></option> <? $rx = mysqli_query($db,"SELECT `id`,`name`,`channel_id`,`channel_url` FROM `join_exists` WHERE `type` = '1' AND `name` != '' AND `id_account` = '$self_account_id' AND `social` = '0' AND `topic_id` = '0' AND `user_id` = '$user_id'"); $num = mysqli_num_rows($rx); while($list = mysqli_fetch_assoc($rx)) { $u = $list['channel_url']; if(!stristr($u,'t.me')){ continue; } if((stristr($u,'/joinchat')) or (stristr($u,'/+'))){ continue; } ?> <option value='<?=$list['channel_url'];?>'> <?=html_entity_decode($list['name']);?></option> <?}?> </select> <label id='find_inf' style='display:none;'>: <span id='find_s' ></span></label> <img src="/parser_channel/img/load.gif" id="load_find" style="display:none;"> <table class="table table-bordered table-striped similar_channels_list" style='display:none;'> <thead> <tr> <th scope="col" class='opt_col'> </th> <th scope="col" class='opt_col' style='width:100px;'></th> </tr> </thead> <tbody id='similar_channels_update' ></tbody> </table> </div> </div> </div> </div> </div> <div class="modal fade" id="report_work" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" > <div class="modal-dialog modal-dialog-centered" role="document" style='min-width:60%;'> <div class="modal-content"> <div class="modal-header" style='padding:12px 11px;'> <div class="col-md-3"> <h4 class="modal-title" style='font-size:14px;'>   : <span id='logs_count'></span></h4> </div> <div class='col-md-4'> <span id='map_send'></span> </div> <div class="col-md-5" style='text-align:right;'> <div class="form-check-inline" style='display:inline-block;margin:2px 32px;'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input dis_auto_refresh" id="dis_auto_refresh" > <label for="dis_auto_refresh" class="custom-control-label"><b>-</b></label> </div> </div> <button type="button" class="btn btn-danger btn-xs clear_report_log" value="2"> </button> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> </div> <div class="modal-body" style='padding:0;'> <pre id='view_log'><?=$view_log;?></pre> </div> </div> </div> </div> <?if($_SESSION['rang'] == 1){?> <div class="modal fade" id="proxy_box" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" > <div class="modal-dialog modal-dialog-centered" role="document" > <div class="modal-content"> <div class="modal-header" style='padding:12px 11px;'> <h4 class="modal-title" style='font-size:14px;'>  : </h4> </div> <div class="modal-body" style='padding:0;'> <div class='col-md-12' style='padding:10px 10px;display:inline-block;'> <label><b>Telegram :</b></label> <select class='select2 proxy_account' id='proxy_account' style='width:100%;margin-bottom:6px;'> <? $r = mysqli_query($db,"SELECT `id`,`profile_tg`,`name` FROM `accounts_setting` WHERE `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { if($list['id'] == $self_account_id){ $sel = 'selected'; } else { $sel = ''; } if(empty($list['name'])){ $name = '+'.str_replace('.tg','',$list['profile_tg']); } else { $name = $list['name']; } ?><option value='<?=$list['id'];?>' <?=$sel;?>><?=$name;?></option><? ?> <?}?> </select> <label><b> :</b></label> <select class='select2 proxy_type' id='proxy_type' style='width:100%;margin-bottom:6px;'> <option value='0'> </option> <option value='1'>SOCKS4 - IPv4</option> <option value='2'>SOCKS5 - IPv4</option> <option value='3'>MTPROTO - IPv6</option> </select> <div id='proxy_input'> <label><b>:</b></label> <input type="text" class="form-control form-control-sm" id="proxy" value="" placeholder='' > </div> <button type="button" class="btn btn-success btn-xs save_proxy_account" ><i class="fa fa-save"></i> </button> </div> </div> </div> </div> </div> <?}?> </body> </div> </html>

Did this file decode correctly?

Original Code

 include('functions.php'); global $db; if(!$session){ header('location: '.$ssl.$_SERVER['SERVER_NAME'].root_dir.'/login.php');exit; } $act = strip_tags($_GET['act']); preg_match("/^[a-zA-Z0-9\w]+/", $act,$actx); $act = $actx[0]; if(isset($_GET['file'])) { $file = intval($_GET['file']); $file = $_SERVER['DOCUMENT_ROOT'].download_dir.'/'.$file.'.dump'; if(file_exists($file)){ to_download($file); } exit; } if($act == 'logout') { foreach($_SESSION as $p=>$x) { unset($_SESSION[$p]); } header('location: '.$ssl.$_SERVER['SERVER_NAME'].root_dir.'/login.php'); exit; } $self_account_id = get_setting('self_account_id'); $pname = get_setting_account('profile_tg',$self_account_id); $bot_token = get_setting_account('bot_token',$self_account_id); $bot_username = get_setting_account('bot_username',$self_account_id); if((empty($bot_username)) or (empty($bot_token))){ $bot_username = "<span style='color:red'>: API Token Telegram</span>"; } else{ $bot_username = '@'.$bot_username; } $chk = query_get("https://cdn.tposter.top/vers.info"); if(!empty($chk)) { $data_vers = json_decode($chk,true); $last_vers = $data_vers['v']; $rx = mysqli_query($db,"SHOW COLUMNS FROM `setting` LIKE 'v'"); $check = mysqli_num_rows($rx); if(($check == 0) ){ mysqli_query($db,"ALTER TABLE `setting` ADD `v` INT NOT NULL AFTER `user_id`;"); $v = 0; } else{ $v = get_setting('v');} $update_all = 0; $columns = query_get("https://cdn.tposter.top/update_x.info"); $columns_data = json_decode($columns,true); $colums_add = ''; $table_add = 0; foreach($columns_data as $table=>$cols) { foreach($cols as $name=>$type) { $r = mysqli_query($db,"SHOW TABLES LIKE '$table'"); $is_table = mysqli_num_rows($r); if($is_table > 0) { $rx = mysqli_query($db,"SHOW COLUMNS FROM `$table` LIKE '$name'"); $exist = mysqli_num_rows($rx); if($exist == 0) { mysqli_query($db,"ALTER TABLE `$table` ADD `$name` $type NOT NULL"); $update_all++; } }else { if($name == 'user_id'){ $def = " DEFAULT '1'"; }else { $def = ''; } $colums_add .= "`$name` $type NOT NULL $def,"; } } if($is_table == 0) { mysqli_query($db,"CREATE TABLE `$table` (`id` int NOT NULL AUTO_INCREMENT,$colums_add PRIMARY KEY (id)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci"); $table_add++; } } mysqli_query($db,"UPDATE `setting` SET `v` = '$last_vers'"); } ?> <!doctype html> <html lang="ru"> <head> <meta charset="utf-8"> <title>Telegram  / v8.3 [Alone] Kostolom</title> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="author" content="@mortem_art"> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <link rel="stylesheet" href=" <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.css"> <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.js"></script> <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css" rel="stylesheet" /> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js"></script> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap-select.min.css"> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap-select.min.js"></script> <script src="https://cdn.tposter.top/libs/js/main_func.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-timepicker-addon/1.6.3/jquery-ui-timepicker-addon.min.js" integrity="sha512-s5u/JBtkPg+Ff2WEr49/cJsod95UgLHbC00N/GglqdQuLnYhALncz8ZHiW/LxDRGduijLKzeYb7Aal9h3codZA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-timepicker-addon/1.6.3/jquery-ui-timepicker-addon.min.css" integrity="sha512-LT9fy1J8pE4Cy6ijbg96UkExgOjCqcxAC7xsnv+mLJxSvftGVmmc236jlPTZXPcBRQcVOWoK1IJhb1dAjtb4lQ==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-timepicker-addon/1.6.3/i18n/jquery-ui-timepicker-addon-i18n.min.js" integrity="sha512-t2ZIJH81Sh+SWSb4BuA9en4j6fwja+sYOEXbqoepD9lJ+efUGD94gSWqdmgQchGmPez2ojECq4Fm6bKMUAzIiQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <link rel="stylesheet" href="<?=root_dir;?>/css/font-awesome.css"> <link rel="stylesheet" href="<?=root_dir;?>/css/style.css"> <link rel="apple-touch-icon" sizes="180x180" href="<?=root_dir;?>/img/favicon/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="32x32" href="<?=root_dir;?>/img/favicon/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="<?=root_dir;?>/img/favicon/favicon-16x16.png"> <link rel="manifest" href="<?=root_dir;?>/img/favicon/site.webmanifest"> <link rel="mask-icon" href="<?=root_dir;?>/img/favicon/safari-pinned-tab.svg" color="#5bbad5"> <link rel="shortcut icon" href="<?=root_dir;?>/img/favicon/favicon.ico"> <meta name="msapplication-TileColor" content="#2d89ef"> <meta name="msapplication-config" content="<?=root_dir;?>/img/favicon/browserconfig.xml"> <meta name="theme-color" content="#ffffff"> </head> <body> <div class="container"> <?if(($update_all > 0) or ($table_add > 0)){?> <script> $(document).ready(function(){ $.alert({title: 'Info:',content: ' Updated<?php echo "<br> Add columns:tables base: ".$update_all.':'.$table_add;?>.<br>Current vers: 8.3',}); }); </script> <?}?> <input type='hidden' id='page_x' value='<?=$_SERVER['REQUEST_URI'];?>'> <input type='hidden' id='select2_open' value='0'> <input type='hidden' id='open_log_task' value='0'> <input type='hidden' id='log_setting_id' value='0'> <input type='hidden' id='cache_update' value='0'> <ul class="nav nav-tabs"> <li class="nav-item"> <a class="nav-link active t1" data-toggle="tab" href="#power"><i class="fa fa-paper-plane-o" ></i>  </a> </li> <li class="nav-item update_channels"> <a class="nav-link t2" data-toggle="tab" href="#setting_channel"><i class="fa fa-list" ></i>  </a> </li> <li class="nav-item"> <a class="nav-link t3" data-toggle="tab" href="#setting_channel_chat_gpt"><i class="fa fa-list" ></i>  chatGPT</a> </li> <li class="nav-item"> <a class="nav-link t4" data-toggle="tab" href="#setting"><i class="fa fa-cogs" ></i>  </a> </li> <li class="nav-item"> <a class="nav-link t4" data-toggle="tab" href="#dump_opt"><i class="fa fa-files-o" ></i> .</a> </li> <li class="nav-item"> <a class="nav-link t4" data-toggle="tab" href="#info_user"> </a> </li> </ul> <div class='col-md-12'> <div class="tab-content"> <div id="power" class="tab-pane active" style='padding:0;'> <div class='col-md-12' style='padding:0;'> <div class='col-md-5' style='margin-bottom:5px;padding:0;width:400px;'> <label><b> :</b></label> <select class='select2 list_channel_publish' style='width:100%;'> <option value=''></option> <optgroup class="select2-result-selectable" label="Telegram :"> <? $rx = mysqli_query($db,"SELECT `channel_url`,`name` FROM `join_exists` WHERE `type` = '2' AND `name` != '' AND `social` = '0' AND `id_account` = '$self_account_id' AND `user_id` = '$user_id'"); $num1 = mysqli_num_rows($rx); if($num1 == 0){ $view_p = 'display'; } else { $view_p = 'none'; } while($list = mysqli_fetch_assoc($rx)) { $social_desc = 'TG: '; $ico = ''; ?> <option value='<?=$list['channel_url'];?>'><?=$ico;?> <?=html_entity_decode($social_desc.$list['name']);?></option> <?}?> </optgroup> <optgroup class="select2-result-selectable" label="VK :"> <? $rx1 = mysqli_query($db,"SELECT `channel_url`,`name` FROM `join_exists` WHERE `type` = '2' AND `name` != '' AND `social` = '1' AND `id_account` = '$self_account_id' AND `user_id` = '$user_id'"); $num1 = mysqli_num_rows($rx1); if($num1 == 0){ $view_p = 'display'; } else { $view_p = 'none'; } while($list = mysqli_fetch_assoc($rx1)) { $social_desc = 'VK: '; $ico = ''; ?> <option value='<?=$list['channel_url'];?>'><?=$ico;?> <?=html_entity_decode($social_desc.$list['name']);?></option> <?}?> </optgroup> <option value='0'>  <option> </select> <input type="text" class="form-control form-control-sm" id='channel_publish' style='margin-top:2px;display:<?=$view_p;?>;' placeholder='https://t.me/username,  - https://t.me/groupname/123'> </div> <div class='col-md-5' style='width:400px;padding:0;'> <label><b> :</b> </label> <button type="button" class="btn btn-danger btn-xs similar_channels"><i class="fa fa-search"></i>   </button> <select class='select2 list_channel_origin' style='width:100%;'> <option></option> <optgroup class="select2-result-selectable" label=" :"> <? $habr_arr = json_decode($habr_json,true); foreach($habr_arr['items'] as $st=>$item_opt) { $name_group = $habr_arr['label'][$st]['name']; $alias_group = $habr_arr['label'][$st]['alias']; foreach($item_opt as $st2=>$item) { $name = $item['name']; $alias = $item['alias']; $info = " $name_group->$name"; ?> <option value='<?=$alias;?>' type='1' habr_num='<?=$st.':'.$st2;?>'><?=$info;?></option> <?}?> <?}?> </optgroup> <optgroup class="select2-result-selectable" label="Telegram :"> <? $rx = mysqli_query($db,"SELECT `channel_url`,`name`,`social`,`topic_id` FROM `join_exists` WHERE `type` = '1' AND `name` != '' AND `id_account` = '$self_account_id' AND `social` = '0' AND `user_id` = '$user_id'"); $num1 = mysqli_num_rows($rx); if($num1 == 0){ $view_o = 'display'; } else { $view_o = 'none'; } while($list = mysqli_fetch_assoc($rx)) { $topic_id = $list['topic_id']; $social_desc = 'TG: '; $ico = ''; if($topic_id > 0){ $channel_u = $list['channel_url']."/$topic_id"; }else { $channel_u = $list['channel_url']; } ?> <option value='<?=$channel_u;?>' type='2'><?=$ico;?> <?=html_entity_decode($social_desc.$list['name']);?></option> <?}?> </optgroup> <optgroup class="select2-result-selectable" label="VK :"> <? $rx = mysqli_query($db,"SELECT `channel_url`,`name`,`social`,`topic_id` FROM `join_exists` WHERE `type` = '1' AND `name` != '' AND `id_account` = '$self_account_id' AND `social` = '1' AND `user_id` = '$user_id'"); $num1 = mysqli_num_rows($rx); if($num1 == 0){ $view_o = 'display'; } else { $view_o = 'none'; } while($list = mysqli_fetch_assoc($rx)) { $topic_id = $list['topic_id']; $social_desc = 'VK: '; $ico = ''; if($topic_id > 0){ $channel_u = $list['channel_url']."/$topic_id"; }else { $channel_u = $list['channel_url']; } ?> <option value='<?=$channel_u;?>' type='3'><?=$ico;?> <?=html_entity_decode($social_desc.$list['name']);?></option> <?}?> </optgroup> <option value='0'>  <option> </select> <input type="text" class="form-control form-control-sm" id='channel_origin' style='margin:0 0 2px;;display:<?=$view_o;?>;' placeholder=' https://t.me/username, id , http://vk.com/group' title='https://t.me/channel,  - https://t.me/groupname/123 \ https://t.me/joinchat/XXXX, id   1138327XXX  http://vk.com/group'> </div> <div class='col-md-2'> <br><button class='btn add_channel'><i class="fa fa-plus" ></i> </button> <img src='<?=root_dir;?>/img/load.gif' id='load' style='display:none;'> </div> <br><label><b id='tasks'>: 0</b> | <b id='total_origin'>:</b></label> <span id='info_tasks'> <label id='info_task1' style='display:none;' title='  telegram  telegram'>TG-TG: <b id='info_task1_val'></b></label> <label id='info_task2' style='display:none;' title='  telegram  vk'> | TG-VK: <b id='info_task2_val'></b></label> <label id='info_task3' style='display:none;' title='  vk  telegram'>| VK-TG: <b id='info_task3_val'></b></label> <label id='info_task4' style='display:none;' title='  vk  vk'>| VK-VK: <b id='info_task4_val'></b></label> <label id='info_task5' style='display:none;' title='  habr  tg'>| HABR-TG: <b id='info_task5_val'></b></label> <label id='info_task6' style='display:none;' title='  habr  vk'>| HABR-VK: <b id='info_task6_val'></b></label> </span> <button class='btn update_task_list'><i class="fa fa-refresh" ></i> </button> <br><img src='<?=root_dir;?>/img/load.gif' id='load_tasks'> <table class="table table-bordered table-striped table_x1" style='display:none;'> <thead> <tr> <th scope="col" class='opt_col' style='width:26%;'> </th> <th scope="col" class='opt_col invisible_' style='width:34%;' >  \ </th> <th scope="col" class='opt_col '></th> <th scope="col" class='opt_col invisible_'></th> <th scope="col" class='opt_col' style='width:41px;'>#</th> </tr> </thead> <tbody id='channels'></tbody> </table> </div> </div> <div id="setting" class="container tab-pane fade" style='max-width:100%;'> <div class='col-md-12 box_setting' style='padding:0;margin-top:-18px;'> <div class="col-md-11 clear_p" > <label><b>*  telegram :</b></label> <button type="button" class="btn btn-danger btn-xs rename_account" ><i class="fa fa-pencil"></i> </button> <select class='select2 change_account' id='self_account' style='width:100%;margin-bottom:6px;'> <? $r = mysqli_query($db,"SELECT `id`,`profile_tg`,`name` FROM `accounts_setting` WHERE `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { $id = $list['id']; if($list['id'] == $self_account_id){ $sel = 'selected'; } else { $sel = ''; } if(empty($list['name'])){ $name = '+'.str_replace('.tg','',$list['profile_tg']); } else { $name = $list['name']; } ?><option value='<?=$list['id'];?>' <?=$sel;?>><?=$name;?></option><? ?> <?}?> </select> <button type="button" class="btn btn-primary btn-xs power_channels_join"><i class="fa fa-bars"></i>  </button> <button type="button" class="btn btn-primary btn-xs default_data_filter" title='  (-\ )'><i class="fa fa-bars"></i>  </button> <?if($_SESSION['rang'] == 1){?> <button type="button" class="btn btn-primary btn-xs manager_accounts" style='margin-top:6px;;' title=' (  )'><i class="fa fa-users" ></i>  </button> <?}?> <button type="button" class="btn btn-primary btn-xs add_account" title='  ' step_add='0'><i class="fa fa-plus"></i>  </button> <button type="button" class="btn btn-danger btn-xs proxy_manager"><i class="fa fa-plug"></i> </button> <button type="button" class="btn btn-danger btn-xs del_account" value='1' style='float:right;'><i class="fa fa-remove"></i>  </button> <button type="button" class="btn btn-danger btn-xs del_account" value='2' style='float:right;'><i class="fa fa-remove"></i>  </button> </div> <div class='col-md-5 clear_p'> <? $rx = mysqli_query($db,"SELECT `bot_token`,`status`,`restart`,`duplicat_dis_glob`,`similar_text`,`update_task`,`clear_updates`, `clear_duplicatus`,`api_key_vk`,`missed_post`,`chat_gpt_key`,`not_update_join_list`, `proxy_gpt`,`limit_publish`,`limit_publish_count`,`limit_publish_hours`, `limit_publish_send`,`conrirm_del_task`,`photo_album_vk`,`neural_network`,`oauth_token_gpt`, `model_uri_yandex_gpt`,`model_gpt_yandex` FROM `accounts_setting` WHERE `id` = '$self_account_id' AND `user_id` = '$user_id'"); $data_x = mysqli_fetch_assoc($rx); $bot_token = $data_x['bot_token']; $status = $data_x['status']; $restart = intval($data_x['restart']) ? :''; $duplicat_dis_glob = $data_x['duplicat_dis_glob']; $similar_text = $data_x['similar_text']; $update_task = $data_x['update_task']; $clear_updates = $data_x['clear_updates']; $clear_duplicatus = $data_x['clear_duplicatus']; $api_key_vk = $data_x['api_key_vk']; $missed_post = $data_x['missed_post']; $chat_gpt_key = $data_x['chat_gpt_key']; $not_update_join_list = $data_x['not_update_join_list']; $proxy_gpt = $data_x['proxy_gpt']; $limit_publish = $data_x['limit_publish']; $limit_publish_count = $data_x['limit_publish_count']; $limit_publish_hours = $data_x['limit_publish_hours']; $limit_publish_send = $data_x['limit_publish_send']; $conrirm_del_task = $data_x['conrirm_del_task']; $vk_album_id = $data_x['photo_album_vk']; $neural = $data_x['neural_network']; $oauth_token_gpt = $data_x['oauth_token_gpt']; $model_uri_yandex_gpt = $data_x['model_uri_yandex_gpt']; $model_gpt_yandex = $data_x['model_gpt_yandex']; if($limit_publish == 1){ $show_limit_p = 'block'; } else { $show_limit_p = 'none'; } ?> <div class="form-group"> <br> <label><b><a href="https://t.me/BotFather" target="_blank" class="link_apikey">API Token</a> Telegram -  \   VK:</b></label> <input type="text" class="form-control form-control-sm" id='bot_token' value='<?=$bot_token;?>'> <label><b>:</b></label> <div id='neural_network_block'> <div class="form-check-inline"> <label class="form-check-label"> <input type="radio" class="form-check-input neural_network" name="neural_network" value='0' <?if($neural == 0){ echo "checked"; }?>>ChatGPT</label> </div> <div class="form-check-inline"> <label class="form-check-label"> <input type="radio" class="form-check-input neural_network" name="neural_network" value='1' <?if($neural == 1){ echo "checked"; }?>>YandexGPT</label> </div> </div> <div id='gpt_show1' <?if($neural > 0){ echo "style='display:none;'";}?>> <label><b><a href='https://platform.openai.com/account/api-keys' target='_blank' class='link_apikey'>API KEY</a> List -    ChatGPT:</b></label> <textarea class="form-control form-control-sm" id='chat_gpt_key' title=' API KEY -     ' placeholder="<?echo "sk-xxxxxx\nsk-xxxxxx";?>"><?=$chat_gpt_key;?></textarea> <div class="form-check-inline"> <div class="custom-control custom-switch" title='    ip RU"'> <input type="checkbox" class="custom-control-input proxy_gpt" id='proxy_gpt' <?if($proxy_gpt == 1){ echo 'checked'; }?>> <label for='proxy_gpt' class="custom-control-label" ><b>  TOR</b></label> </div> </div> </div> <div id='gpt_show2' <?if($neural <> 1){ echo "style='display:none;'";}?>> <label class="form-check-label"><b> GPT:</b></label> <select class='select2 model_gpt_yandex' id='model_gpt_yandex' style='width:100%;'> <option value='0' <?if($model_gpt_yandex == 0){ echo "selected"; }?>>YandexGPT Lite: RC GPT 3</option> <option value='1' <?if($model_gpt_yandex == 1){ echo "selected"; }?>>YandexGPT Lite: Latest GPT 2</option> <option value='2' <?if($model_gpt_yandex == 2){ echo "selected"; }?>>YandexGPT PRO: Latest GPT 3</option> </select> <label><b>OAuth-token -    YandexGPT:</b></label> <input type="text" class="form-control form-control-sm" id='oauth_token_yandex_gpt' value='<?=$oauth_token_gpt;?>'> <label><b>modelUri -  :</b></label> <input type="text" class="form-control form-control-sm" id='model_uri_yandex_gpt' placeholder='b2gxqde1ghcmg68ipn1xQ' value='<?=$model_uri_yandex_gpt;?>'> <br><a type='button' href='https://telegra.ph/Nastrojka-YandexGPT-API-08-30' class='btn btn-primary' id='info_gpt_ya' target='_blank'>  </a> </div> <hr> <label><b>\    (%):</b> <span title=' %  ,   %   .' style='color:#b50617;font-size:11px;'>?</span></label> <input type="number" class="form-control form-control-sm" id='similar_text' value='<?=$similar_text;?>' min='0' max='100' placeholder='0 - .  1%  99%' title='     ( ),    .'> <br> <details> <summary style='text-indent:5px;;'> ()</summary> <label><b> (    telegram):</b></label> <select class='select2' id='rename_channel' style='width:100%;margin-bottom:6px;'> <option value='0'></option> <? $r = mysqli_query($db,"SELECT `channel_id`,`name` FROM `join_exists` WHERE `type` = '2' AND `id_account` = '$self_account_id' AND `topic_id` = '0' AND `social` = '0' AND `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { ?><option value='<?=$list['channel_id'];?>' ><?=$list['name'];?></option><? ?> <?}?> </select> <span id='new_name' style='display:none;'> <br><label><b>  :</b></label> <input type="text" class="form-control form-control-sm" id='channel_name'> <button type="button" class="btn btn-primary btn-xs change_name_channel"><i class="fa fa-pencil-square-o" ></i> </button> </span><br><hr> </details> <div class="form-check-inline"> <div class="custom-control custom-switch" title=' \  : "   "'> <input type="checkbox" class="custom-control-input duplicat_dis_glob" id='duplicat_dis_glob' <?if($duplicat_dis_glob == 1){ echo 'checked'; }?>> <label for='duplicat_dis_glob' class="custom-control-label" ><b>   ( )   </b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input update_task" id='update_task' <?if($update_task == 1){ echo 'checked'; }?>> <label for='update_task' class="custom-control-label" ><b> -    </b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input missed_post" id='missed_post' <?if($missed_post == 1){ echo 'checked'; }?>> <label for='missed_post' class="custom-control-label" title='     '><b>     </b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input not_update_join_list" id='not_update_join_list' <?if($not_update_join_list == 1){ echo 'checked'; }?>> <label for='not_update_join_list' class="custom-control-label" title='   \,     ""   .'><b>   (  )</b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input conrirm_del_task" id='conrirm_del_task' <?if($conrirm_del_task == 1){ echo 'checked'; }?>> <label for='conrirm_del_task' class="custom-control-label" title='       .'><b>   </b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input limit_publish" id='limit_publish' <?if($limit_publish == 1){ echo 'checked'; }?>> <label for='limit_publish' class="custom-control-label" title='  -     .    : [    ] '><b>   </b></label> </div> <div id="limit_publish_box" style="padding-left:36px;display:<?=$show_limit_p;?>"> <div class="col-md-3"> <label> :</label> <input class="form-control limit_publish_count" type="number" value="<?=$limit_publish_count;?>" min="1" style="width:102px"> </div> <div class="col-md-3"> <label> :</label> <input class="form-control limit_publish_hours" type="number" value="<?=$limit_publish_hours;?>" min="1" title='  . 24 -  | 48 - 2 ' style="width:102px"> </div> <div class="col-md-5" style='padding:0 5px;'> <label> :</label> <label class='limit_info_data'> : <b style='color:green;' id='publish_send_info'><?=$limit_publish_send;?></b><br> : <b id='publish_count_info'><?=$limit_publish_count;?> </b><br>   <b id='publish_hours_info'><?=$limit_publish_hours;?> </b>.</label> <button type="button" class="btn btn-primary btn-xs limit_publish_reset"><i class="fa fa-refresh"></i>  </button> </div> </div> </div> <hr> <label><b> :</b></label> <div class="form-check-inline work_status"> <div class="custom-control custom-checkbox col-sm-12"> <input type="radio" class="custom-control-input status_bot" name="status_bot" id='status_bot1' value='0' <?if(($status == 0) && ($self_account_id > 0)){ echo 'checked'; }?>> <label for='status_bot1' class="custom-control-label"></label> </div> </div> <div class="form-check-inline work_status"> <div class="custom-control custom-checkbox col-sm-12"> <input type="radio" class="custom-control-input status_bot" name="status_bot" id='status_bot2' value='1' <?if($status == 1){ echo 'checked'; }?>> <label for='status_bot2' class="custom-control-label"></label> </div> </div> </div> </div> <div class='col-md-5'> <div class='col-md-12 '> <br><h6>   vk.com</h6> <details style='font-size:14px;'> <summary>()</summary> <label><b style='font-size:10px;'>1.    vk,     <a href='https://oauth.vk.com/authorize?client_id=2685278&scope=1073737727&redirect_uri=https://oauth.vk.com/blank.html&display=page&response_type=token&revoke=1' target='_blank' style='font-size:10px;'>Create token</a>.<br>2.  "".<br> 3.      "access_token="     .</b></label><br> </details> <label style='margin-top:12px;'><b>AccessToken [API VK] -  :</b></label> <input type="text" class="form-control form-control-sm" id='api_key_vk' value='<?=$api_key_vk;?>' placeholder='access_token'> <label style='margin-top:12px;'><b>Album-ID( \   vk ):</b></label> <input type="text" class="form-control form-control-sm" id='vk_album_id' value='<?=$vk_album_id;?>' title=' xxxxxxxx : vk.com/album12345_xxxxxxxx.   .' placeholder='xxxxxxxx'> </div> <div class='col-md-12 '> <hr><h6>Manager AutoClear tmp data</h6> <label><b>-  :</b></label><br> <label><b>    ():</b></label> <input type="number" class="form-control form-control-sm" id='clear_duplicatus' value='<?=$clear_duplicatus;?>' min='1' max='14' title='        .'> <label><b>  updates():</b></label> <input type="number" class="form-control form-control-sm" id='clear_updates' value='<?=$clear_updates;?>' min='1' max='14' title='    :    \   \ ID .'> </div> <hr> <label><b> :</b></label> <input type="password" class="form-control form-control-sm" id='new_pwd' > <button type="button" class="btn btn-primary btn-xs change_pwd"><i class="fa fa-pencil-square-o" ></i> </button> <a href='<?=root_dir;?>/logout/' class='btn btn-primary btn-xs'><i class="fa fa-sign-out" ></i>  </a> </div> <button class='btn btn-primary save_setting' style='width:100%;'><i class="fa fa-floppy-o"></i> </button> </div> </div> <div id="setting_channel" class="container tab-pane fade" > <div class='col-md-12' style='padding:0;'> <? $r1 = mysqli_query($db,"SELECT `setting_id`,`social_pub` FROM `channels_origin` WHERE `account_id` = '$self_account_id' AND `user_id` = '$user_id' ORDER BY `id` LIMIT 0,1"); $data_s = mysqli_fetch_assoc($r1); $setting_id_1 = $data_s['setting_id']; $social_pub = $data_s['social_pub']; $rx = mysqli_query($db,"SELECT `spam_filter`,`replace_words`,`filter_message`,`filter_inline`,`enable_text_message`,`my_text_message`, `replace_link`,`skip_text`,`filter_links`,`timetable`,`time_post`,`limit_post`,`limit_hours`, `limit_time`,`limit_status`,`forward_message`,`ignore_post_type`,`sugn_channel`,`word_send_post`, `word_send_post_func`,`word_send_post_type`,`replace_username_stat`,`replace_username`,`update_message`, `delete_message`,`reply_post`,`length_message_limit`,`length_message`,`type_check_m`, `schedule`,`schedule_date`,`send_text_no_media`,`post_no_webpage`,`ignore_album`,`ignore_audio`, `duplicat_dis`,`del_empty_line`,`rename_files_func`,`word_rename_files`,`arm_link`,`arm_links_data`,`round_msg`, `sing_image`,`sing_image_png`,`pinned_message`,`hash_tags`,`entities`,`photo_text_post`, `photo_text_post_image`,`preg_match_list`,`pg_type`,`preg_match_text`,`sticker`,`limit_send`,`limit_send_posts`, `method_send_post`,`inline_url_data`,`inline_keyboard`,`method_send_max_file`,`spoiler_bot_photo`, `protect_content_bot`,`spoiler_bot_video`,`grabber_username`,`close_comments`, `auto_delete_message`,`value_delete_message`,`period_delete_message`,`delete_sign_source`,`valid_sing_post`, `inline_copy`,`inline_copy_url`,`grabber_content`,`delete_emoji`,`sing_image_position`,`pinned_message_type`, `habr_post_type`,`habr_photo_end` FROM `channels_settings` WHERE `id` = '$setting_id_1'"); $data_x = mysqli_fetch_assoc($rx); $spam_filter = $data_x['spam_filter']; $replace_words = $data_x['replace_words']; $filter_message = $data_x['filter_message']; $filter_inline = $data_x['filter_inline']; $enable_text_message = $data_x['enable_text_message']; $my_text_message = $data_x['my_text_message']; $replace_link = $data_x['replace_link']; $skip_text = $data_x['skip_text']; $filter_links = $data_x['filter_links']; $timetable = $data_x['timetable']; $limit_status = $data_x['limit_status']; $forward_message = $data_x['forward_message']; $ignore_post_type = $data_x['ignore_post_type']; $sugn_channel = $data_x['sugn_channel']; $word_send_post = $data_x['word_send_post']; $word_send_post_func = $data_x['word_send_post_func']; $word_send_post_type = $data_x['word_send_post_type']; $replace_username_stat = $data_x['replace_username_stat']; $replace_username = $data_x['replace_username']; $update_message = $data_x['update_message']; $delete_message = $data_x['delete_message']; $reply_post = $data_x['reply_post']; $length_message_limit = $data_x['length_message_limit']; $type_check_m = $data_x['type_check_m']; $schedule = $data_x['schedule']; $schedule_date = $data_x['schedule_date']; $send_text_no_media = $data_x['send_text_no_media']; $post_no_webpage = $data_x['post_no_webpage']; $ignore_album = $data_x['ignore_album']; $ignore_audio = $data_x['ignore_audio']; $duplicat_dis = $data_x['duplicat_dis']; $del_empty_line = $data_x['del_empty_line']; $rename_files_func = $data_x['rename_files_func']; $word_rename_files = $data_x['word_rename_files']; $arm_links_data = json_decode($data_x['arm_links_data'],true); $round_msg = $data_x['round_msg']; $sing_image = $data_x['sing_image']; $sing_image_png = $data_x['sing_image_png']; $pinned_message = $data_x['pinned_message']; $hash_tags = $data_x['hash_tags']; $entities = $data_x['entities']; $photo_text_post = $data_x['photo_text_post']; $photo_text_post_image = $data_x['photo_text_post_image']; $preg_match_list = base64_decode($data_x['preg_match_list']); $pg_type = $data_x['pg_type']; $preg_match_text = $data_x['preg_match_text']; $sticker = $data_x['sticker']; $limit_send = $data_x['limit_send']; $limit_send_posts = $data_x['limit_send_posts']; $inline_url_data = $data_x['inline_url_data']; $method_send_post = $data_x['method_send_post']; $inline_keyboard = $data_x['inline_keyboard']; $method_send_max_file = $data_x['method_send_max_file']; $spoiler_bot_photo = $data_x['spoiler_bot_photo']; $protect_content_bot = $data_x['protect_content_bot']; $spoiler_bot_video = $data_x['spoiler_bot_video']; $grabber_username = $data_x['grabber_username']; $close_comments = $data_x['close_comments']; $auto_delete_message = $data_x['auto_delete_message']; $period_delete_message = $data_x['period_delete_message']; $value_delete_message = $data_x['value_delete_message']; $delete_sign_source = $data_x['delete_sign_source']; $valid_sing_post = $data_x['valid_sing_post']; $inline_copy = $data_x['inline_copy']; $inline_copy_url = $data_x['inline_copy_url']; $grabber_content = $data_x['grabber_content']; $delete_emoji = $data_x['delete_emoji']; $sing_image_position = $data_x['sing_image_position']; $pinned_message_type = $data_x['pinned_message_type']; $habr_post_type = $data_x['habr_post_type']; $habr_photo_end = $data_x['habr_photo_end']; $sel = 'selected'; if($timetable == 1){ $timetable_box = 'block;'; } else { $timetable_box = 'none;'; } if($limit_status == 1){ $limit_box = 'block;'; } else { $limit_box = 'none;'; } if($word_send_post_func == 1){ $word_send_x = 'block;'; } else { $word_send_x = 'none;'; } if($length_message_limit == 1){ $length_message_limit_x = 'block;'; } else { $length_message_limit_x = 'none;'; } if($rename_files_func == 1){ $rename_files_show = 'block;'; } else { $rename_files_show = 'none;'; } if($sing_image == 1){ $sing_image_show = 'block;';$image_show = 'block;'; } else { $sing_image_show = 'none;'; $image_show = 'none;'; } if($photo_text_post == 1){ $photo_text_post_show = 'block;'; } else { $photo_text_post_show = 'none;'; } if($pg_type == 1){ $pg_type_box = 'block;'; } else { $pg_type_box = 'none;'; } if($method_send_post == 1){ $inline_url_box = 'block;'; } else { $inline_url_box = 'none;'; } if($inline_keyboard == 1){ $inline_url_data_box = 'block;'; } else { $inline_url_data_box = 'none;'; } if($inline_copy == 1){ $inline_copy_box = 'block;'; } else { $inline_copy_box = 'none;'; } if($grabber_content == 1){ $grabber_content_box = 'block;'; } else { $grabber_content_box = 'none;'; } if($delete_emoji == 1){ $delete_emoji_box = 'block;'; } else { $delete_emoji_box = 'none;'; } if($schedule == 1){ $schedule_box = 'block;'; } else { $schedule_box = 'none;'; } ?> <div class='col-md-12' style='padding:2px 0 16px 15px'> <label><i class="fa fa-bars" ></i> <b>     :</b></label> <img src='<?=root_dir;?>/img/load.gif' id='load_setting' style='display:none;'> <select id='channel_setting' class='select2 channel_setting' style='width:98.6%;'> <? $r = mysqli_query($db,"SELECT `setting_id`,`origin_name`,`publish_name`,`social`,`social_pub` FROM `channels_origin` WHERE `account_id` = '$self_account_id' AND `channel_publish_id` > 0 AND `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { $setting_id = $list['setting_id']; $social = $list['social']; $rx = mysqli_query($db,"SELECT `id` FROM `channels_settings` WHERE `id` = '$setting_id' AND `status` = '0'"); $num = mysqli_num_rows($rx); if($num == 0){ continue; } if($social == 1){ $social_desc = 'VK - '; $ico = ''; } elseif($social == 2) { $social_desc = 'HABR - '; $ico = ''; } elseif($social == 0) { $social_desc = 'TG - '; $ico = ''; } if($list['social_pub'] == 1){ $social_desc_pub = 'VK - '; $ico_p = ''; } else { $social_desc_pub = 'TG:'; $ico_p = ''; } $name_row = $ico." : $social_desc ".$list['origin_name']." | $ico_p : $social_desc_pub ".$list['publish_name']; ?> <option value='<?=$setting_id?>'><?=$name_row;?></option> <?}?> </select> </div> <div class='col-md-5 load_data'> <? $info = " :  \  \  \n\n      ,      ."; ?> <label desc='valid_sing_post'><b> (\\):</b></label> <span id='valid_sing_post_help' title='<?=$info;?>'></span> <input type="text" id="valid_sing_post" class="form-control" value="<?=$valid_sing_post;?>" title='       ,    \ .'> <label desc='spam_filter'><b>-:</b></label> <textarea id='spam_filter' class='form-control save_opt_tx' placeholder=' -' style='margin-bottom:7px;'><?=$spam_filter;?></textarea> <label desc='replace_words'><b> :<br> <span style='color:#c11010;padding:5px;'>#1. |. #2. ==</span> <span title='\ 3 . :  *Dark *Word,  ==)'></span></b></label> <textarea id='replace_words' class='form-control save_opt_tx' placeholder='    \'><?=$replace_words;?></textarea> <label desc='filter_links'><b>    :</b></label> <? if(($filter_message == 4) or ($filter_message == 5)){ $dis_links = 'disabled';$link_bg = 'style="background:#f1f1f1"'; } else { $dis_links = '';$link_bg = 'style="background:##f9f9f9"'; } ?> <textarea id='filter_links' class='form-control save_opt_tx' placeholder='    ' <?=$dis_links;?> <?=$link_bg;?>><?=$filter_links;?></textarea> <label desc='sugn_channel'><b> (  ):</b></label> <textarea id='sugn_channel' class='form-control save_opt_tx' placeholder='  .     - Enter. Sugn1|Sugn2|Sugn3|Sugn4 - .<?echo "\n{SENDER_CHANNEL} - URL  & {LINK_POST} URL \n{NAME_CHANNEL} -  ";?>' title='1. {SENDER_CHANNEL} -   .<?echo "\n";?>2. {LINK_POST} -  (https://t.me/netstalkers/123).<?echo "\n";?>3. <a href="{LINK_POST}"></a> -    .<?echo "\n{NAME_CHANNEL} -  ."?>'><?=$sugn_channel;?></textarea> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input delete_sign_source" id='delete_sign_source' <?if($delete_sign_source == 1){ echo 'checked'; }?>> <label for='delete_sign_source' class="custom-control-label" title=' \   "\"     \ '><b> -    .</b></label> </div> </div> <label desc='preg_match_list'><b> () \ Regex: </b></label> <button class='link-danger info_regex' href=""> </button> <textarea id='preg_match_list' class='form-control save_opt_tx' placeholder='  ' title=' /([\(|\)|\s|+\d]{10,20})\b'><?=$preg_match_list;?></textarea> <select id='pg_type'> <option value='0' <?if($pg_type == 0){ echo $sel; }?>>  </option> <option value='1' <?if($pg_type == 1){ echo $sel; }?>>   </option> </select> <div id='block_preg_m' style='display:<?=$pg_type_box;?>'> <label desc='preg_match_text'><b>  (   ): </b></label> <textarea id='preg_match_text' class='form-control save_opt_tx' placeholder='   ' ><?=$preg_match_text;?></textarea> </div> <hr> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input word_send_post_func" id='word_send_post_func' <?if($word_send_post_func == 1){ echo 'checked'; }?>> <label for='word_send_post_func' class="custom-control-label"><b>      </b></label> </div> </div> <div id='box_word_send' style='display:<?=$word_send_x;?>'> <select id='word_send_post_type' class='select2' style='width:100%;'> <option value='0' <?if($word_send_post_type == 0){ echo $sel; }?>>  </option> <option value='1' <?if($word_send_post_type == 1){ echo $sel; }?>>  </option> </select><p> <textarea id='word_send_post' class='form-control' style='margin-top:11px;' title='   ,   ' ><?=$word_send_post;?></textarea> </div> <div class="form-check-inline" id='rename_files_func_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input rename_files_func" id='rename_files_func' <?if($rename_files_func == 1){ echo 'checked'; }?>> <label for='rename_files_func' class="custom-control-label"><b> -</b></label> </div> </div> <div id='box_rename_files' style='display:<?=$rename_files_show;?>'> <b> -(|)  :</b> <textarea id='word_rename_files' class='form-control' style='margin-top:11px;' placeholder='<? echo "FileName|MyName -  \n@Username|@Myusername -  username  \nFaith|False illusion -  ";?>' ><?=$word_rename_files;?></textarea> </div> <div class="form-check-inline" style='width:90%;'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input sing_image" id='sing_image' <?if($sing_image == 1){ echo 'checked'; }?>> <label for='sing_image' class="custom-control-label"><b> (\)</b></label> </div> </div> <div id='box_sing_image' style='padding-bottom:24px;display:<?=$sing_image_show;?>'> <div class='col-md-12'> <label><b>:</b></label> <select id='sing_image_position' class='select2' style='width:100%;'> <option value='0' <?if($sing_image_position == 0){ echo $sel; }?>>   </option> <option value='1' <?if($sing_image_position == 1){ echo $sel; }?>>   </option> <option value='2' <?if($sing_image_position == 2){ echo $sel; }?>>   </option> </select> <label><i class="fa fa-info-circle"></i> <b>.PNG</b> (150px\300px)  :</label> <div class="input-group"> <div class="input-group-prepend"> <span class="input-group-text" id="sing_image_png"><i class="fa fa-picture-o"></i> .PNG</span> </div> <div class="custom-file"> <form id='sing_image_f'> <input type="file" class="custom-file-input" id="sing_image_png" name='sing_image_png' aria-describedby="sing_image_png"> <label class="custom-file-label" for="sing_image_png"><i class="fa fa-picture-o"></i></label> </form> </div> </div> <? if(!empty($sing_image_png)) { $bg_png = "background:url(http://".$_SERVER['SERVER_ADDR']."/".download_dir.'/'.$sing_image_png.') no-repeat center;'; $image_png_show = 'block;'; }else { $bg_png = '';$image_png_show = 'none;'; } ?> <div id='image_logo' style='display:<?=$image_png_show.$bg_png;?>'><i class="fa fa-trash del_sing_png" title='' style='display:<?=$image_png_show;?>;'></i></div> <div id='upload_sign' style='display:none;'></div> <div class='info_png'>C <b>.png:</b> <a href='https://gfto.ru/index/generator_cyberpunk_text_effect/0-148' target='_black' class='link_png'>Link_1</a> | <a href='https://fonttextup.com/wave-neon-logo-editor.html' target='_black' class='link_png'>Link_2</a> | <a href='https://textdrom.com/neon-png-text.html' target='_black' class='link_png'>Link_3</a> </div> </div> </div> <div class="form-check-inline" style='width:90%;' id='photo_text_post_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input photo_text_post" id='photo_text_post' <?if($photo_text_post == 1){ echo 'checked'; }?>> <label for='photo_text_post' class="custom-control-label"><b>   </b></label> </div> </div> <div id='box_photo_text_post' style='padding-bottom:24px;display:<?=$photo_text_post_show;?>'> <div class='col-md-12'> <label><i class="fa fa-info-circle"></i> <b>.PNG\JPG</b>  :</label> <div class="input-group"> <div class="input-group-prepend"> <span class="input-group-text" id="photo_text_post_form"><i class="fa fa-picture-o"></i> .PNG\JPG</span> </div> <div class="custom-file"> <form id='photo_text_post_f'> <input type="file" class="custom-file-input" id="photo_text_post_form" name='photo_text_post_form' aria-describedby="photo_text_post_form"> <label class="custom-file-label" for="photo_text_post_form"><i class="fa fa-picture-o"></i></label> </form> </div> </div> <? if(!empty($photo_text_post_image)) { $bg_png = "background:url(http://".$_SERVER['SERVER_ADDR']."/".download_dir.'/'.$photo_text_post_image.') no-repeat center;'; $photo_text_post_show = 'block;'; }else { $bg_png = '';$photo_text_post_show = 'none;'; } ?> <div id='photo_text_post_view' style='display:<?=$photo_text_post_show.$bg_png;?>'><i class="fa fa-trash del_photo_text_post" title='' style='display:<?=$photo_text_post_show;?>;'></i></div> <div id='upload_photo_text_post' style='display:none;'></div> </div> </div> </div> <div class='col-md-5 load_data' style='max-width:57%;'> <div id='method_send_post_block'> <label><b>  :</b></label> <select id='method_send_post' class='select2' style='width:100%;'> <option value='0' <?if($method_send_post == 0){ echo $sel; }?>>   telegram </option> <option value='1' <?if($method_send_post == 1){ echo $sel; }?>>  (),   tg bot </option> </select> </div> <div id='inline_url_block' style='display:<?=$inline_url_box;?>'> <div class="alert alert-success info_sendbot" style='text-align:justify;'> <b>:</b> \\\\( inline)\.<br><b> :</b> 50MB.<br><b><u>:</u></b> <b><?=$bot_username;?></b><?if(!empty($bot_token)){?>    .<?}?></div> <div id='forward_max_size'> <label title='  50 - ,,,  10 - '><b>  <code class='maxf'>10\50</code>   \:</b></label> <select id='method_send_max_file' class='select2' style='width:100%;'> <option value='0' <?if($method_send_max_file == 0){ echo $sel; }?>>  telegram (  )</option> <option value='1' <?if($method_send_max_file == 1){ echo $sel; }?>>  </option> </select> </div> <label style='margin-top:14px;'><b> :</b></label><br> <div class='col-md-12 load_data' style='padding:0;'> <div class='col-md-2 load_data' style='padding:0;'> <label> :</label> </div> <div class='col-md-3 load_data' style='display:inline-flex;'> <div class="form-check-inline" > <div class="custom-control custom-switch spoiler_type_inf"> <input type="checkbox" class="custom-control-input spoiler_bot_photo" id='spoiler_bot_photo' <?if($spoiler_bot_photo == 1){ echo 'checked'; }?>> <label for='spoiler_bot_photo' class="custom-control-label"><b></b></label> </div> </div> <div class="form-check-inline" > <div class="custom-control custom-switch spoiler_type_inf"> <input type="checkbox" class="custom-control-input spoiler_bot_video" id='spoiler_bot_video' <?if($spoiler_bot_video == 1){ echo 'checked'; }?>> <label for='spoiler_bot_video' class="custom-control-label"><b></b></label> </div> </div> </div> </div> <div class="form-check-inline" > <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input protect_content_bot" id='protect_content_bot' <?if($protect_content_bot == 1){ echo 'checked'; }?>> <label for='protect_content_bot' class="custom-control-label"><b>  </b></label> </div> </div> <div class="form-check-inline" > <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input inline_keyboard" id='inline_keyboard' <?if($inline_keyboard == 1){ echo 'checked'; }?>> <label for='inline_keyboard' class="custom-control-label"><b> inline    :</b></label> </div> </div> <textarea id="inline_url_data" class="form-control inline_url_data" style='display:<?=$inline_url_data_box;?>' placeholder="<?echo "  + \nClickMe + https://google.com\n\n[{'text':'test','url':'https://t.me/dev'}]]'";?>" title='    json'><?=$inline_url_data;?></textarea> <div class="form-check-inline" id='inline_copy_box' > <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='inline_copy' <?if($inline_copy == 1){ echo 'checked'; }?>> <label for='inline_copy' class="custom-control-label" title='    text\link inline '><b> inline </b></label> </div> </div> <div id="inline_copy_url_box" style="margin-left:24px;display:<?=$inline_copy_box;?>"> <label style='margin:0;'><b>  :</b></label> <input type="text" class="form-control form-control-sm" id="inline_copy_url" value="<?=$inline_copy_url;?>"> </div> <hr> </div> <label><b> </b></label> <select id='filter_message' class='select2' style='width:100%;'> <option value='0' <?if($filter_message == 0){ echo $sel; }?>> </option> <option value='1' <?if($filter_message == 1){ echo $sel; }?>>    </option> <option value='2' <?if($filter_message == 2){ echo $sel; }?>>   t.me/username* , t.me/joinchat/XXXX*  @Username*</option> <option value='3' <?if($filter_message == 3){ echo $sel; }?>>    c t.me/name*  t.me/joinchat/XXXX*</option> <option value='4' <?if($filter_message == 4){ echo $sel; }?>>   </option> <option value='5' <?if($filter_message == 5){ echo $sel; }?>>      ()</option> </select> <div class='replace_link_box' <?if($filter_message <> 5){ echo 'style="display:none;"';} ?>> <? if(($filter_message == 5) && ($enable_text_message == 1)){ $dis = 'disabled'; } else { $dis = ''; } ?> <label><b>  :</b></label> <input type="text" class="form-control form-control-sm" id='replace_link' value='<?=$replace_link;?>' <?=$dis;?>> </div> <div id='box_ignore_post_type'> <label><b> </b></label> <select id='ignore_post_type' class='select2' style='width:100%;'> <option value='0' <?if($ignore_post_type == 0){ echo $sel; }?>> </option> <optgroup label=':'> <option value='1' <?if($ignore_post_type == 1){ echo $sel; }?>>   (  )</option> <option value='2' <?if($ignore_post_type == 2){ echo $sel; }?>>    </option> <option value='3' <?if($ignore_post_type == 3){ echo $sel; }?>>   ( )</option> <option value='4' <?if($ignore_post_type == 4){ echo $sel; }?>>   (  )</option> <option value='5' <?if($ignore_post_type == 5){ echo $sel; }?>>    </option> <option value='9' <?if($ignore_post_type == 9){ echo $sel; }?>>    </option> </optgroup> <optgroup label=' :'> <option value='6' <?if($ignore_post_type == 6){ echo $sel; }?>>  ( )</option> <option value='7' <?if($ignore_post_type == 7){ echo $sel; }?>>  \</option> <option value='8' <?if($ignore_post_type == 8){ echo $sel; }?>>  </option> <option value='10' <?if($ignore_post_type == 10){ echo $sel; }?>>    (\\)</option> <option value='11' <?if($ignore_post_type == 11){ echo $sel; }?>>  c </option> <option value='12' <?if($ignore_post_type == 12){ echo $sel; }?>>  \</option> </optgroup> </select> </div> <? if(empty($chat_gpt_key)){ $info_w = "<span style='font-size:10px;color:red;' title=' API KEY ChatGTP   -  '> - : API KEY ChatGTP!</span>"; } else { $info_w = ''; } ?> <label><b>    <?=$info_w;?></b></label> <select id='translate_lang' class='select2' style='width:100%;'> <option value='0' <?if(empty($translate_lang)){ echo $sel; }?>> </option> <? $arr = explode("|",$languages); foreach($arr as $val) { ?> <option value='<?=$val;?>' <?if($val == $translate_lang){ echo $sel; }?>><?=$val?></option> <?}?> </select> <div id='habr_post_box' style='display:none;'> <label><b> :</b></label> <select id='habr_post_type' class='select2' style='width:100%;'> <option value='0' <?if($habr_post_type == 0){ echo $sel; }?>> ( ,)</option> <option value='1' <?if($habr_post_type == 1){ echo $sel; }?>>  ( ,,)</option> </select> <div class="form-check-inline" id='link_read_box'><p> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='link_read_add' <?if($link_read_add == 1){ echo 'checked'; }?>> <label for='link_read_add' class="custom-control-label" title='        \'><b> :  ..</b></label> </div> </div> <div class="custom-control custom-switch" style='margin-top:8px;'> <input type="checkbox" class="custom-control-input save_opt" id='habr_photo_end' <?if($habr_photo_end == 1){ echo 'checked'; }?>> <label for='habr_photo_end' class="custom-control-label" title='      '><b>    ( )</b></label> </div> </div> <hr> <div class='col-md-5 chk_inline' style='padding:0'> <label><b>  :</b></label><br> <div class="form-check-inline" id='filter_inline_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='filter_inline' <?if($filter_inline == 1){ echo 'checked'; }?>> <label for='filter_inline' class="custom-control-label" title='    inline     inline  ()'><b>    inline </b></label> </div> </div> <div class="form-check-inline" id='box_skip_text'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input skip_text save_opt" id='skip_text' <?if($skip_text == 1){ echo 'checked'; }?>> <label for='skip_text' class="custom-control-label"><b>    </b></label> </div> </div> <div class="form-check-inline" id='reply_post_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='reply_post' <?if($reply_post == 1){ echo 'checked'; }?>> <label for='reply_post' class="custom-control-label"><b> (Reply)</b></label> </div> </div> <div class="form-check-inline" id='send_text_no_media_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='send_text_no_media' <?if($send_text_no_media == 1){ echo 'checked'; }?>> <label for='send_text_no_media' class="custom-control-label"><b>  ( )</b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='post_no_webpage' <?if($post_no_webpage == 1){ echo 'checked'; }?>> <label for='post_no_webpage' class="custom-control-label"><b>   </b></label> </div> </div> <div class="form-check-inline" id='box_ignore_album'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='ignore_album' <?if($ignore_album == 1){ echo 'checked'; }?>> <label for='ignore_album' class="custom-control-label"><b> -</b></label> </div> </div> <div class="form-check-inline" id='box_ignore_audio'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='ignore_audio' <?if($ignore_audio == 1){ echo 'checked'; }?>> <label for='ignore_audio' class="custom-control-label"><b> -</b></label> </div> </div> <div class="form-check-inline" id='round_msg_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='round_msg' <?if($round_msg == 1){ echo 'checked'; }?>> <label for='round_msg' class="custom-control-label"><b> VLOG ()</b></label> </div> </div> <div class="form-check-inline" id='pinned_message_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='pinned_message' <?if($pinned_message == 1){ echo 'checked'; }?>> <label for='pinned_message' class="custom-control-label"><b>   </b></label> </div> <div id='pinned_message_type_box' style='margin:-4px 0 3px 38px;display:none;'> <label> :</label> <select id='pinned_message_type' class='select2' style='width:100%;'> <option value='0' <?if($pinned_message_type == 0){ echo "selected"; }?>></option> <option value='1' <?if($pinned_message_type == 1){ echo "selected"; }?>>  </option> <option value='2' <?if($pinned_message_type == 2){ echo "selected"; }?>>  </option> <option value='3' <?if($pinned_message_type == 3){ echo "selected"; }?>> </option> </select> </div> </div> <div class="form-check-inline" id='sticker_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='sticker' <?if($sticker == 1){ echo 'checked'; }?>> <label for='sticker' class="custom-control-label"><b> </b></label> </div> </div> </div> <div class='col-md-5 chk_inline' id='update_post_event_box' style='max-width:56%;'> <label><b> :</b></label><br> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='update_message' <?if($update_message == 1){ echo 'checked'; }?>> <label for='update_message' class="custom-control-label" title='       '><b>    </b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='delete_message' <?if($delete_message == 1){ echo 'checked'; }?>> <label for='delete_message' class="custom-control-label" title='       '><b>    </b></label> </div> </div> <div class="form-check-inline" id='limit_send_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input auto_delete_message" id='auto_delete_message' <?if($auto_delete_message == 1){ echo 'checked'; }?>> <label for='auto_delete_message' class="custom-control-label" title='-     '><b>-  N- </b></label> </div> </div> <div id='delete_message_box' <?if($auto_delete_message == 0){ echo 'style="display:none;"'; }?>> <div class="col-md-3"> <label> :</label> <input type="number" class="form-control value_delete_message" value="<?=$value_delete_message;?>" min="1" style="width:102px;"> </div> <div class="col-md-5"> <label style='margin:0;'> :</label><br> <label title="  " class='info_p'> <input type="radio" class="period_delete_message" name="period_delete_message" value="0" <?if($period_delete_message == 0){ echo "checked";}?>>  </label><br> <label title="  " class='info_p'> <input type="radio" class="period_delete_message" name="period_delete_message" value="1" <?if($period_delete_message == 1){ echo "checked";}?>>  </label> </div> </div> <div class="form-check-inline" id='grabber_content_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input grabber_content save_opt" id='grabber_content' <?if($grabber_content == 1){ echo 'checked'; }?>> <label for='grabber_content' class="custom-control-label" title='      '><b> </b></label> </div> <div class="col-md-11 grabber_content_info" style='padding-left:36px;display:<?=$grabber_content_box;?>'> <label><b>   :</b></label> <? $saved = download_dir.'/grabber_content'; ?> <input type="text" class="form-control path_grabber" readonly value="<?=$saved;?>" > </div> </div> </div> <div id='close_comments_box' <?if($social_pub == 0){ echo 'style="display:none;"'; }?>> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input save_opt" id='close_comments' <?if($close_comments == 1){ echo 'checked'; }?>> <label for='close_comments' class="custom-control-label"><b>  </b></label> </div> </div> </div> <hr> <div class='col-md-6 chk_inline' style='padding:0;display:inline-table;'> <label><b> :</b></label><br> <div class="form-check-inline" id='box_enable_text_message'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input enable_text_message" id='enable_text_message' <?if($enable_text_message == 1){ echo 'checked'; }?>> <label for='enable_text_message' class="custom-control-label"><b>   c    </b></label> </div> </div> <textarea id='my_text_message' class='form-control' <?if($enable_text_message == 0){ echo 'style="display:none;"'; }?> placeholder='It1|It2|Kill4me|12345 -  ' title=' | 1|2|3|4|5'><?=$my_text_message;?></textarea> <div class="form-check-inline" id='replace_username_stat_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input replace_username_stat" id='replace_username_stat' <?if($replace_username_stat == 1){ echo 'checked'; }?>> <label for='replace_username_stat' class="custom-control-label"><b>  @username    </b></label> </div> </div> <input type='text' id='replace_username' class='form-control' value='<?=$replace_username;?>' <?if($replace_username_stat == 0){ echo 'style="display:none;"'; }?>> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input timetable" id='timetable' <?if($timetable == 1){ echo 'checked'; }?>> <label for='timetable' class="custom-control-label"><b> </b></label> </div> </div> <div id='time_box' style='display:<?=$timetable_box;?>'> <label><b>  [<?=date('H:i');?>]:</b></label> <div class="row time_box_row" > <? $time_post = explode('|',$data_x['time_post']); foreach($time_post as $val) { $checked_[$val] = true; } for($q=0;$q<24;$q++) { if($q < 10){ $q = "0".$q; } if($checked_[$q]){ $sel = 'checked'; } else { $sel = ''; } ?> <div class="custom-control custom-checkbox col-sm-2"> <input type="checkbox" class="custom-control-input time_post hour<?=$q;?>" id='chk<?=$q;?>' value='<?=$q;?>' <?=$sel;?>> <label for='chk<?=$q;?>' class="custom-control-label"><?=$q;?>:00</label> </div> <?}?> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input limit_status" id='limit_status' <?if($limit_status == 1){ echo 'checked'; }?>> <label for='limit_status' class="custom-control-label"><b>    </b></label> </div> </div> <div id='limit_box' style='display:<?=$limit_box;?>'> <div class='col-md-4'> <label> :</label> <input type='number' class='form-control limit_count_post' value='<?=$data_x['limit_post'];?>' min='1' style='width:102px;'> </div> <div class='col-md-4'> <label> :</label> <input type='number' class='form-control limit_hours' value='<?=$data_x['limit_hours'];?>' min='1' style='width:102px;'> </div> </div> <div class="form-check-inline" id='forward_message_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input forward_message save_opt" id='forward_message' <?if($forward_message == 1){ echo 'checked'; }?> > <label for='forward_message' class="custom-control-label"><b>ForwardMessage</b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input length_message_limit" id='length_message_limit' <?if($length_message_limit == 1){ echo 'checked'; }?>> <label for='length_message_limit' class="custom-control-label"><b>  -   </b></label> </div> </div> <div id='length_message_limit_box' style='display:<?=$length_message_limit_x;?>'> <div class='col-md-3'> <label>- :</label> <input type='number' class='form-control length_message' value='<?=$data_x['length_message']?:0;?>' min='20' style='width:102px;'> </div> <div class='col-md-5'> <label>, :</label><br> <label title=' '> <input type='radio' class='type_check_m' name='type_check_m' value='1' <?if($type_check_m == 1){ echo 'checked'; }?>>  </label><br> <label title=' '> <input type='radio' class='type_check_m' name='type_check_m' value='2' <?if($type_check_m == 2){ echo 'checked'; }?>>  </label> </div> </div> <div class="form-check-inline" id='schedule_show' > <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input schedule" id='schedule' <?if($schedule == 1){ echo 'checked'; }?> > <label for='schedule' class="custom-control-label"><b> ( )</b></label> <div id='schedule_box' style='display:<?=$schedule_box;?>'> <label><b>:</b></label> <select id='type_schedule' class='select2' style='width:100%;margin-bottom:10px;'> <option value='0' <?if($type_schedule == 0){ echo $sel; }?>>  N-</option> <option value='1' <?if($type_schedule == 1){ echo $sel; }?>>   \</option> </select> <div id='schedule_1'> <label style='margin:0;'><b>1 -  1 . 2-3-4-5 -  :</b></label><br> <input type='text' class='form-control input_schedule schedule_date' id='schedule_date' name='schedule_date' value='<?=$schedule_date;?>' > </div> <div id='schedule_2' style='display:none;'> <label style='margin:0;'><b>  \</b>:</label><br> <input type='text' class='form-control input_schedule schedule_date' id='schedule_date_picker' name='schedule_date_icker' value='<?=$schedule_date_icker;?>' placeholder='   '> </div> </div> </div> </div> </div> <div class='col-md-5' style='display:inline-table;'> <label><b> :</b></label><br> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input duplicat_dis save_opt" id='duplicat_dis' <?if($duplicat_dis == 1){ echo 'checked'; }?>> <label for='duplicat_dis' class="custom-control-label"><b>   </b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input del_empty_line save_opt" id='del_empty_line' <?if($del_empty_line == 1){ echo 'checked'; }?>> <label for='del_empty_line' class="custom-control-label" title='    >2'><b>  \</b></label> </div> </div> <div class="form-check-inline"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input hash_tags save_opt" id='hash_tags' <?if($hash_tags == 1){ echo 'checked'; }?>> <label for='hash_tags' class="custom-control-label" ><b> </b></label> </div> </div> <div class="form-check-inline" id='entities_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input entities save_opt" id='entities' <?if($entities == 1){ echo 'checked'; }?>> <label for='entities' class="custom-control-label" title='   -  \  \   '><b>  </b></label> </div> </div> <div class="form-check-inline" id='limit_send_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input limit_send" id='limit_send' <?if($limit_send == 1){ echo 'checked'; }?>> <label for='limit_send' class="custom-control-label" title='   1 '><b>   1 </b></label> <div id='limit_send_f' style='display:<?if($limit_send == 0){?>none;<?}?>'> <label> :</label><br> <input type='number' class='form-control limit_send_posts' id='limit_send_posts' name='limit_send_posts' value='<?=$limit_send_posts;?>' min='0' style='width:107px;'> </div> </div> </div> <div class="form-check-inline" id='grabber_username_box' style="display:none;"> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input grabber_username" id='grabber_username' <?if($grabber_username == 1){ echo 'checked'; }?>> <label for='grabber_username' class="custom-control-label" title='Get usernames users in message text'><b>Grabber Username</b></label> </div> </div> <div class="form-check-inline" id='delete_emoji_box'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input delete_emoji" id='delete_emoji' <?if($delete_emoji == 1){ echo 'checked'; }?>> <label for='delete_emoji' class="custom-control-label"><b> Premium Emoji</b></label> </div> </div> </div> <hr> <button class='btn btn-primary save_setting_channel' style='width:100%;' type='1'><i class="fa fa-floppy-o" ></i>   </button><p> <button class='btn btn-primary save_setting_channel_all' style='width:100%' type='2'><i class="fa fa-floppy-o" ></i>   </button> </div> </div> </div> <div id="setting_channel_chat_gpt" class="container tab-pane fade" > <div class='col-md-12' style='padding:0;'> <? $r1 = mysqli_query($db,"SELECT `setting_id` FROM `channels_origin` WHERE `account_id` = '$self_account_id' AND `user_id` = '$user_id' ORDER BY `id` LIMIT 0,1"); $data_s = mysqli_fetch_assoc($r1); $setting_id_1 = $data_s['setting_id']; $rx = mysqli_query($db,"SELECT `filter_links_gpt`,`replace_words_gpt`,`config_gpt`,`rewriting_message_gpt`, `type_filter_gpt`,`gpt_filter_text`,`filter_text_gpt_method`,`config_gpt_yandex` FROM `channels_settings` WHERE `id` = '$setting_id_1'"); $data_x = mysqli_fetch_assoc($rx); $filter_links = $data_x['filter_links_gpt']; $replace_words = $data_x['replace_words_gpt']; $config_gpt = $data_x['config_gpt']; $rewriting_message_gpt = $data_x['rewriting_message_gpt']?:' '; $type_filter_gpt = $data_x['type_filter_gpt']; $gpt_filter_text = $data_x['gpt_filter_text']; $text_gpt_method = $data_x['filter_text_gpt_method']; $config_gpt_yandex = $data_x['config_gpt_yandex']; $neural_network = get_setting_account('neural_network',$self_account_id); $config_gpt_json = json_decode($config_gpt,true); if((empty($config_gpt)) or (empty($config_gpt_json))) { $config_gpt = "model=gpt-3.5-turbo\nmax_tokens=1024\ntemperature=1\ntop_p=0.2\nfrequency_penalty=0.3\npresence_penalty=0.2\n"; }else { $config_gpt = ''; foreach($config_gpt_json as $name=>$val) { $config_gpt .= "$name=$val\n"; } } $config_gpt_ya = json_decode($config_gpt_yandex,true); if((empty($config_gpt_yandex)) or (empty($config_gpt_ya))) { $config_gpt_param = "stream=false\nmaxTokens=1024\ntemperature=0.5\n"; }else { $config_gpt_param = ''; foreach($config_gpt_ya as $name=>$val) { $config_gpt_param .= "$name=$val\n"; } } if($type_filter_gpt == 1){ $dis_filt = ''; $dis_content = 'disabled';$css_faq = 'style="opacity:0.4;"'; } elseif($type_filter_gpt == 2){ $dis_filt = 'disabled'; $dis_content = '';$css_faq = ''; } else{ $dis_filt = 'disabled'; $dis_content = 'disabled';$css_faq = 'style="opacity:0.4;"'; } ?> <div class='col-md-12' style='padding:2px 0 16px 15px'> <label><i class="fa fa-bars" ></i> <b>     :</b></label> <img src='<?=root_dir;?>/img/load.gif' id='load_setting_gpt' style='display:none;'> <select id='channel_setting_gpt' class='select2 channel_setting' style='width:98.6%;'> <? $r = mysqli_query($db,"SELECT `setting_id`,`origin_name`,`publish_name`,`social`,`social_pub` FROM `channels_origin` WHERE `account_id` = '$self_account_id' AND `channel_publish_id` > 0 AND `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { $setting_id = $list['setting_id']; $social = $list['social']; $rx = mysqli_query($db,"SELECT `id` FROM `channels_settings` WHERE `id` = '$setting_id' AND `status` = '0'"); $num = mysqli_num_rows($rx); if($num == 0){ continue; } if($social == 1){ $social_desc = 'VK - '; $ico = ''; } elseif($social == 2) { $social_desc = 'HABR - '; $ico = ''; } elseif($social == 0) { $social_desc = 'TG - '; $ico = ''; } if($list['social_pub'] == 1){ $social_desc_pub = 'VK - '; $ico_p = ''; } else { $social_desc_pub = 'TG:'; $ico_p = ''; } $name_row = $ico." : $social_desc ".$list['origin_name']." | $ico_p : $social_desc_pub ".$list['publish_name']; ?> <option value='<?=$setting_id?>'><?=$name_row;?></option> <?}?> </select> </div> <div class='col-md-4 load_data_gpt' style='padding-left:15px;'> <div class="form-check-inline"> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input type_filter_gpt save_opt" name='type_filter_gpt1' id='type_filter_gpt1' value='1' <?if($type_filter_gpt == 1){ echo 'checked'; }?>> <label for='type_filter_gpt1' class="custom-control-label" title=''><b> </b></label> </div> </div><hr> <label desc='replace_words_gpt'><b>Prompt - \(,,):<br></b></label> <textarea id='replace_words_gpt' class='form-control' placeholder='<?="     \n     \n    \n  username   @\n  unicode \n ,     ";?>' <?=$dis_filt;?>><?=$replace_words;?></textarea> <label desc='filter_links'><b>Prompt Command -     :</b></label> <textarea id='filter_links_gpt' class='form-control' placeholder='<?="    \n    vk.com";?>' <?=$dis_filt;?>><?=$filter_links;?></textarea> </div> <div class='col-md-4 load_data_gpt' style='padding-left:13px;'> <div class="col-md-12 clear_p"> <div class="form-check-inline"> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input type_filter_gpt save_opt" name='type_filter_gpt2' id='type_filter_gpt2' value='2' <?if($type_filter_gpt == 2){ echo 'checked'; }?>> <label for='type_filter_gpt2' class="custom-control-label" title='  '><b> </b></label> </div> </div><hr> <label><b>Prompt Command:</b></label> <input type="text" class="form-control rewriting_message_gpt" id='rewriting_message_gpt' title='  - - , ,   ' <?=$dis_content;?> value="<?=$rewriting_message_gpt;?>"> <label desc='replace_words_gpt'><b> :<br></b></label><br> <textarea id='config_gpt' class='form-control' <?=$dis_content;?> <?if($neural_network > 0){ echo "style='display:none'";}?>><?=$config_gpt;?></textarea> <textarea id='config_gpt_yandex' class='form-control' <?=$dis_content;?> <?if($neural_network <> 1){ echo "style='display:none'";}?>><?=$config_gpt_param;?></textarea> <div id='info_gpt_config' <?if($neural_network > 0){ echo "style='display:none'";}?>> <label><code>model</code> -  chatGPT.</label> <label><code>max_tokens[0.01-2048]</code> - - .</label> <label><code>temperature[0.01-1]</code> - 1    .</label> <label><code>top_p[0.01-1]</code> -     \ .</label> <label><code>frequency_penalty[0.01-2]</code> 2 -  \.</label> <label><code>presence_penalty[0.01-2]</code> 2 -   .</label> </div> <div id='info_gpt_config_yandex' <?if($neural_network <> 1){ echo "style='display:none'";}?>> <label><code>stream[false|true] </code> -    .</label> <label><code>temperature[0.01-1]</code> -   ,      .</label> <label><code>maxTokens[0.01-1]</code> -  - ..</label> </div> </div> </div> <div class='col-md-3 load_data_gpt filter_gpt3' style='padding-left:13px;max-width:30%;'> <label class='info_gpt_f'>      :</label> <label style='padding-right:10px;'><b> :</b></label> <div class="custom-control custom-radio custom-control-inline"> <input type="radio" class="custom-control-input f_text_gpt_method" id="gpt_method0" name="filter_text_gpt_method" value="0" <?if($text_gpt_method == 0){ echo 'checked'; }?>> <label class="custom-control-label" for="gpt_method0" title='  '></label> </div> <div class="custom-control custom-radio custom-control-inline"> <input type="radio" class="custom-control-input f_text_gpt_method" id="gpt_method1" name="filter_text_gpt_method" value="1" <?if($text_gpt_method == 1){ echo 'checked'; }?>> <label class="custom-control-label" for="gpt_method1" title='  '></label> </div> <label><b>Prompt Command - :</b></label> <textarea id='filter_text_gpt' class='form-control' title='    ' placeholder='<?="  \n \n \n \n \n \n \n   \n  ";?>'><?=$gpt_filter_text;?></textarea> </div> <hr> <button class='btn btn-primary save_setting_channel_gpt' style='width:30%;' type='1'><i class="fa fa-floppy-o" ></i>  </button> <button class="btn btn-primary save_setting_channel_all_gpt" style="width:30%" type="2"><i class="fa fa-floppy-o"></i>   </button> <button class="btn btn-primary save_setting_channel_all_gpt" style="width:30%" type="3" title='   ,     GPT '><i class="fa fa-floppy-o"></i>      GPT </button> <p> </div> </div> <div id="dump_opt" class="container tab-pane fade" style='max-width:100%;'> <div class='col-md-12 clear_p'> <label id='backup_info'>  :</label> <div class="form-check-inline" style='display:inline-block;'> <div class="custom-control custom-checkbox col-sm-12 dump_elem"> <input type="radio" class="custom-control-input type_dump" name="type_dump" id="type_dump1" value="0" checked> <label for="type_dump1" class="custom-control-label">  ( \)</label> </div> </div> <div class="form-check-inline" style='display:inline-block;'> <div class="custom-control custom-checkbox col-sm-12 dump_elem"> <input type="radio" class="custom-control-input type_dump" name="type_dump" id="type_dump2" value="1"> <label for="type_dump2" class="custom-control-label"> ( ) </label> </div> </div> <hr> <div id='dump_1' style='display:none;'> <div class="col-md-5 clear_p" > <h5><b> :</b></h5> <label><b>.  :</b></label> <select class='select2' id='export_account' style='width:100%;margin-bottom:6px;'> <? $r = mysqli_query($db,"SELECT `id`,`profile_tg`,`name` FROM `accounts_setting` WHERE `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { if(!empty($list['name'])){ $name = $list['name']; }else { $name = $list['profile_tg']; } if($list['id'] == $self_account_id){ $sel = 'selected'; } else { $sel = ''; } ?><option value='<?=$list['id'];?>' <?=$sel;?>><?=$name;?></option><? ?> <?}?> </select><hr> <label><b><i class="fa fa-question-circle" ></i>  :</b></label><br> <label><b>  </b></label><br> <label><b>  </b></label><br> <label><b>  </b></label><br> <label><b>  </b></label><br> <button type="button" class="btn btn-danger btn-xs export_run"><i class="fa fa-save" ></i> </button> <img src='<?=root_dir;?>/img/load.gif' id='load_export' class='load_ex' style='display:none'> </div> <div class='col-md-6 clear_p' style='display:inline-table;'> <h5><b> :</b></h5> <label><b> :</b></label> <select class='select2' id='import_account' style='width:100%;margin-bottom:6px;'> <? $r = mysqli_query($db,"SELECT `id`,`profile_tg`,`name` FROM `accounts_setting` WHERE `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { if(!empty($list['name'])){ $name = $list['name']; }else { $name = $list['profile_tg']; } if($list['id'] == $self_account_id){ $sel = 'selected'; } else { $sel = ''; } ?><option value='<?=$list['id'];?>' <?=$sel;?>><?=$name;?></option><? ?> <?}?> </select><hr> <div class='col-md-6 clear_p'> <label for="exampleFormControlFile1"><b><i class="fa fa-file"></i>  .:</b></label> <form id='upload_import_file'> <input type='file' name='file' class='file_import'> <img src='<?=root_dir;?>/img/load.gif' id='load_import' class='load_ex' style='display:none'> </form> </div> <? $r = mysqli_query($db,"SELECT `id`,`channel_url`,`name` FROM `join_exists` WHERE `id_account` = '$self_account_id' AND `ready` = '1' AND `user_id` = '$user_id'"); $all_join = mysqli_num_rows($r); ?> <?if($all_join > 0){?> <br><label><b><i class="fa fa-exclamation" ></i>   <u> </u>   : <span id='all_join'><?=$all_join;?></span></b></label> <table class="table table-bordered table-striped table_x1"> <thead> <tr> <th scope="col" class='opt_col' ></th> <th scope="col" class='opt_col invisible_'></th> <th scope="col" class='opt_col' style='width:41px;'>#</th> </tr> </thead> <tbody id='channels_join'> <? while($list = mysqli_fetch_array($r)) { $u = "<a href='".$list['channel_url']."' target='_blank'>".$list['name']."</a>"; ?> <tr class='join_wait<?=$list['id'];?>'> <td><?=$u;?></td> <td> <button type="button" class="btn btn-danger btn-xs join_channel" value='<?=$list['id'];?>'><i class="fa fa-plus-square"></i> </button> <button type="button" class="btn btn-success btn-xs join_exist" value='<?=$list['id'];?>'>  </button> </td> <td class='center'><i class="fa fa-trash del_channel_join" value='<?=$list['id'];?>'></i></td> </tr> <? } ?> </tbody> </table> <?}?> </div> </div> <div id='dump_2'> <div class="col-md-5 clear_p" > <h5><b> :</b></h5> <label><b>:</b></label> <select class='select2' id='export_data' style='width:100%;margin-bottom:6px;'> <option value='1'> (  \  )</option> <option value='2'> </option> <option value='3'> </option> </select><hr> <label><b><i class="fa fa-question-circle" ></i>  :</b></label> <label class='infx inf1'><b>  -</b></label> <label class='infx inf2'><b>   telegram </b></label> <label class='infx inf3'><b>  telegram </b></label> <label class='infx inf4'><b>   (.sql)  \</b></label><br> <button type="button" class="btn btn-danger btn-xs export_data_run"><i class="fa fa-file" ></i> </button> <img src='<?=root_dir;?>/img/load.gif' id='load_export_data' class='load_ex' style='display:none'><br> <a href='' id='dump_link' class="btn btn-success" target='_blank' style='display:none;'><i class="fa fa-save" ></i> </a> </div> </div> </div> </div> <div id="info_user" class="container tab-pane fade" style='max-width:100%;'> <div class='col-md-12 clear_p'> <? $rx = mysqli_query($db,"SELECT `id` FROM `accounts_setting`"); $accounts_tg_all = mysqli_num_rows($rx); $rx = mysqli_query($db,"SELECT `id` FROM `Accounts`"); $accounts_all = mysqli_num_rows($rx); $self_account_id = $_SESSION['self_account_id']; $all_post = 0; $rx = mysqli_query($db,"SELECT `id`,`all_post` FROM `channels_origin` WHERE `account_id` = '$self_account_id'"); $num = mysqli_num_rows($rx); if($num > 0) { while($list = mysqli_fetch_assoc($rx)) { $all_post = $all_post + $list['all_post']; } } $rx = mysqli_query($db,"SELECT `id` FROM `channels_origin` WHERE `account_id` = '$self_account_id'"); $channel_all_ = mysqli_num_rows($rx); ?> <div class="col-md-3 info_user clear_p" > <h5><b> :</b></h5><hr> <label><b> :</b> v8.3</label><br> <label><b>Telegram :</b> <?=$accounts_tg_all;?> .</label><br> <label><b> :</b> <?=$accounts_all;?> .</label><br> <label><b> :</b> <?=$login_;?>.</label><br> </div> <div class="col-md-3 info_user clear_p" > <h5><b> :</b></h5><hr> <label><b> :</b> <?=$all_post;?> .</label><br> <label><b>- :</b> <?=$channel_all_;?> .</label><br> </div> <div class="col-md-5 info_user clear_p" > <h5><b>  :</b></h5><hr> <?=query_get('https://cdn.tposter.top/licence/'.base64_encode($_SERVER['SERVER_ADDR']).'.check');?> </div> </div> </div> </div> </div> </div> <div class="modal fade" id="save_opt_box" tabindex="-1" aria-labelledby="exampleModalLabel" > <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel"> </h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> <div class="modal-body"> <div class="form-group"> <div class='col-md-12 clear_p' > <label><b> :</b></label> <input type="text" id='el_name' class="form-control" readonly> <input type='hidden' id='col_name' value=''> <input type='hidden' id='col_type' value='1'> <hr> <label><i class="fa fa-bars" ></i> <b>    :</b></label><br> <select id='channel_setting_multi' class='select2 channel_setting_multi' style='width:100%;' multiple> <? $r = mysqli_query($db,"SELECT `setting_id`,`origin_name`,`publish_name` FROM `channels_origin` WHERE `account_id` = '$self_account_id' AND `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { ?> <option value='<?=$list['setting_id']?>'>: <?=$list['origin_name']. " |  : ".$list['publish_name'];?></option> <?}?> </select> </div> </div> </div> <div class="modal-footer"> <button class="btn btn-primary multi_save_opt" style="width:100%;"><i class="fa fa-floppy-o"></i> </button> </div> </div> </div> </div> <div class="modal fade" id="add_account" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" > <div class="modal-dialog modal-dialog-centered" role="document" > <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title"><i class="fa fa-user"></i>  <span id='step_info'>  </span></h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> <div class="modal-body"> <div class="col-md-12 box_phone"> <div class="col-md-12 clear_p"> <input type='hidden' value='0' id='task_id_auth'> <div class='col-md-12 clear_p' > <label class='control-label phone_num' ><i class="fa fa-mobile"></i>  :</label> <input type='text' class='form-control form-control-sm' id='phone' placeholder='+XXXXXXXXXXX'> <label><b> :</b></label> <select class='select2 proxy_type_auth' id='proxy_type_auth' style='width:100%;margin-bottom:6px;'> <option value='0'> </option> <option value='1'>SOCKS4 - IPv4</option> <option value='2'>SOCKS5 - IPv4</option> <option value='3'>MTPROTO - IPv6</option> </select> <div id='proxy_input_auth' style='display:none;'> <label><b>:</b></label> <input type="text" class="form-control form-control-sm" id="proxy_auth"> </div><hr> <input type='hidden' id='step_add' value='0'> <button type="button" class="btn btn-primary send_code_auth" ><i class="fa fa-telegram"></i>   </button> <button type="button" class="btn btn-primary cancel_auth" value='0' style='display:none;'></button> <span class='load' id='load_send' style='display:none;'></span> </div> <div id='auth_box' style='display:none;'> <hr> <label class='control-label code_enter'>* :</label> <input type='text' class='form-control form-control-sm' id='code_auth' placeholder='  '> <label class='control-label'>2FA(two-factor authentication):</label> <input type='text' class='form-control form-control-sm 2fa_code' id='2fa_code' placeholder=' ,  '> <button type="button" class="btn btn-primary success_auth"><i class="fa fa-check"></i> </button> <span class='load' id='load_success' style='display:none;'></span> </div> <div id='group_user' style='display:none;'><hr> <label class='control-label'><i class="fa fa-users"></i>  : <span id='all_channel_account'>0</span></label><br> <label class='control-label'><i class="fa fa-bars"></i>  :</label> <select class="joined_group_user"multiple data-style="btn-primary"></select> <a type="button" href="<?=root_dir;?>" class="btn btn-primary import_none"></a> </div> </div> </div> </div> <div class="modal-footer"> </div> </div> </div> </div> <div class="modal fade" id="power_channels" tabindex="-1" aria-labelledby="exampleModalLabel" > <div class="modal-dialog" style='min-width:40%;'> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">  </h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> <div class="modal-body" style='padding:0 4px;'> <div class='col-md-12 join_item'> <div class='col-md-6 clear_p'> <? $r = mysqli_query($db,"SELECT `id`,`channel_url`,`name`,`channel_id` FROM `join_exists` WHERE `type` = '2' AND `ready` = '0' AND `user_id` = '$user_id'"); ?> <table class="table table-bordered table-striped table_join"> <thead> <tr> <th scope="col" class='opt_col'> </th> <th scope="col" class='opt_col' style='width:0px;'>#</th> </tr> </thead> <tbody id='join_list' class='join_list_map2'> <? while($list = mysqli_fetch_assoc($r)) { $id = $list['id']; $name = $list['name']; $u = $list['channel_url']; if($name == 'update'){ continue; } if(intval($u) < 1){ $chaneel_u = '<a href="'.$u.'" target="_blank">'.$name.'</a>'; } else { $chaneel_u = $name; } ?> <tr class='join<?=$id;?>'> <td><?=$chaneel_u;?></td> <td class='center'><i class="fa fa-trash del_channel_join_" value='<?=$list['id'];?>' title=''></i></td> </tr> <?}?> </tbody> </table> </div> <div class='col-md-6 clear_p'> <? $r = mysqli_query($db,"SELECT `id`,`channel_url`,`name`,`channel_id`,`social` FROM `join_exists` WHERE `type` = '1' AND `ready` = '0' AND `user_id` = '$user_id'"); ?> <table class="table table-bordered table-striped table_join"> <thead> <tr> <th scope="col" class='opt_col'> </th> <th scope="col" class='opt_col' style='width:0px;'>#</th> </tr> </thead> <tbody id='join_list' class='join_list_map1'> <? while($list = mysqli_fetch_assoc($r)) { $id = $list['id']; $name = $list['name']; $u = $list['channel_url']; if(intval($u) < 1){ $chaneel_u = '<a href="'.$u.'" target="_blank">'.$name.'</a>'; } else { $chaneel_u = $name; } if($list['social'] == 1){ $social_desc = 'VK: '; } else { $social_desc = 'TG: '; } ?> <tr class='join<?=$id;?>'> <td><?=$social_desc.$chaneel_u;?></td> <td class='center'><i class="fa fa-trash del_channel_join_" value='<?=$list['id'];?>' title=''></i></td> </tr> <?}?> </tbody> </table> </div> </div> </div> <div class="modal-footer"></div> </div> </div> </div> <?if($_SESSION['rang'] == 1){?> <div class="modal fade" id="manager_add_account" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" > <div class="modal-dialog modal-dialog-centered" role="document" > <div class="modal-content" style='background:#2e2d2d;color:#a5a4a1;'> <div class="modal-header"> <h4 class="modal-title"><i class="fa fa-user"></i>   </h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> <div class="modal-body"> <div class="col-md-12"> <label><b>  :</b></label><br> <div id='list_account'></div> <hr> <label class='control-label'><b>Login:</b></label> <input type='text' class='form-control form-control-sm' id='login_user' placeholder='User'> <label class='control-label'><b>Password:</b></label> <input type='text' class='form-control form-control-sm' id='password_user'> <br> <button type="button" class="btn btn-primary create_account" style='width:100%;'><i class="fa fa-check"></i>  </button> </div> </div> </div> </div> </div> <?}?> <div class="modal fade" id="regex_box" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" > <div class="modal-dialog modal-dialog-centered" role="document" style='min-width:45%;'> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title"><i class="fa fa-info"></i>    (<i>for preg_match_all()</i>)</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> <div class="modal-body"> <div class="col-md-12 regex_show"> <label><b>  URL\:</b></label><br> <small class="text-muted"> 1:</small> <a href='https://regex101.com/r/lxzw5n/1' class='regex_view' target='_blank'>Pattern test</a> <pre>/(http|https|ftp):\/\/(\S*)/</pre> <small class="text-muted"> 2:</small> <pre>/https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)</pre> <small class="text-muted"> 3:</small> <pre>/(https?:\/\/).*/</pre> <hr> <label><b>   :</b></label><br> <small class="text-muted"> 1:</small> <pre>/\+?\d{1,4}?[-.\s]?\(?\d{1,3}?\)?[-.\s]?\d{1,4}[-.\s]?\d{1,4}[-.\s]?\d{1,9}/</pre> <small class="text-muted"> 2:</small> <a href='https://regex101.com/r/lH7nV3/1' class='regex_view' target='_blank'>Pattern test</a> <pre>/([\(|\)|\s|+\d]{10,20})\b/</pre> <hr> <label><b>  email:</b></label><br> <small class="text-muted"> 1:</small> <a href='https://regex101.com/r/1Luvlm/1' class='regex_view' target='_blank'>Pattern test</a> <pre>/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i</pre> </div> </div> <div class="modal-footer"> </div> </div> </div> </div> <div class="modal fade" id="def_data_filter_box" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" > <div class="modal-dialog modal-dialog-centered" role="document" > <div class="modal-content filter_style"> <div class="modal-header" style='padding:8px 15px;'> <h4 class="modal-title" style='font-size:13px;'><i class="fa fa-info"></i>  - (  )</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> <div class="modal-body" style='padding:0 13px;'> <div class="col-md-12"> <? $data_filter = get_setting_account('default_data_filter',$self_account_id); $data_filter = base64_decode($data_filter); $data_filter = unicode_char($data_filter); $data_filter = json_decode($data_filter,true); ?> <label desc='def_spam_filter'><b>-:</b></label> <textarea id='def_spam_filter' class='form-control def_opt' placeholder=' -'><?=$data_filter['spam_filter'];?></textarea> <label desc='def_replace_words'><b> :<br> <span title='\ 3 . :  *Dark *Word,  ==)'></span></b></label> <textarea id='def_replace_words' class='form-control def_opt' placeholder='    \'><?=$data_filter['replace_words'];?></textarea> <label desc='def_filter_links'><b>    :</b></label> <? if(($filter_message == 4) or ($filter_message == 5)){ $dis_links = 'disabled';$link_bg = 'style="background:#f1f1f1"'; } else { $dis_links = '';$link_bg = 'style="background:##f9f9f9"'; } ?> <textarea id='def_filter_links' class='form-control def_opt' placeholder='    ' <?=$dis_links;?> <?=$link_bg;?>><?=$data_filter['filter_links'];?></textarea> <label desc='def_sugn_channel'><b> (  ):</b></label> <textarea id='def_sugn_channel' class='form-control def_opt' placeholder='   ,     . Sugn1|Sugn2|Sugn3|Sugn4 -  .<?echo "\n{SENDER_CHANNEL} -   & {LINK_POST}  \n{NAME_CHANNEL} -   ";?>' title='1. {SENDER_CHANNEL} -   .<?echo "\n";?>2. {LINK_POST} -  (https://t.me/netstalkers/123).<?echo "\n";?>3. <a href="{LINK_POST}"></a> -    .<?echo "\n{NAME_CHANNEL} -   ."?>'><?=$data_filter['sugn_channel'];?></textarea> <label><b> () \ Regex: </b></label> <textarea id='def_preg_match_list' class='form-control def_opt' placeholder='  ' title=' /([\(|\)|\s|+\d]{10,20})\b'><?=base64_decode($data_filter['preg_match_list']);?></textarea> <select id='def_pg_type'> <option value='0' <?if($data_filter['pg_type'] == 0){ echo 'selected'; }?>>  </option> <option value='1' <?if($data_filter['pg_type'] == 1){ echo 'selected'; }?>>   </option> </select> <div id='def_block_preg_m' <?if($data_filter['pg_type'] == 0){?>style='display:none;'<?}?>> <label><b>  (   ): </b></label> <textarea id='def_preg_match_text' class='form-control def_opt' placeholder='   '><?=$data_filter['preg_match_text'];?></textarea> </div> </div> </div> <div class="modal-footer" style='border:none;'><button type="button" class="btn btn-primary btn-xs save_data_filter" style='width:100%;'><i class="fa fa-save"></i> </button> </div> </div> </div> </div> <div class="modal fade" id="similar_channels_box" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" > <div class="modal-dialog modal-dialog-centered" role="document" > <div class="modal-content"> <div class="modal-header" style='background:#40403d;color:#b5b5b5;'> <h4 class="modal-title"><i class="fa fa-search"></i>   </h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> <div class="modal-body" style='padding:0 8px;min-height:118px;'> <div class='col-md-12 '> <label id='label_similar'>Telegram \  :</label> <select class='select2 list_channel_similar' style='width:100%;'> <option value=''></option> <? $rx = mysqli_query($db,"SELECT `id`,`name`,`channel_id`,`channel_url` FROM `join_exists` WHERE `type` = '1' AND `name` != '' AND `id_account` = '$self_account_id' AND `social` = '0' AND `topic_id` = '0' AND `user_id` = '$user_id'"); $num = mysqli_num_rows($rx); while($list = mysqli_fetch_assoc($rx)) { $u = $list['channel_url']; if(!stristr($u,'t.me')){ continue; } if((stristr($u,'/joinchat')) or (stristr($u,'/+'))){ continue; } ?> <option value='<?=$list['channel_url'];?>'> <?=html_entity_decode($list['name']);?></option> <?}?> </select> <label id='find_inf' style='display:none;'>: <span id='find_s' ></span></label> <img src="/parser_channel/img/load.gif" id="load_find" style="display:none;"> <table class="table table-bordered table-striped similar_channels_list" style='display:none;'> <thead> <tr> <th scope="col" class='opt_col'> </th> <th scope="col" class='opt_col' style='width:100px;'></th> </tr> </thead> <tbody id='similar_channels_update' ></tbody> </table> </div> </div> </div> </div> </div> <div class="modal fade" id="report_work" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" > <div class="modal-dialog modal-dialog-centered" role="document" style='min-width:60%;'> <div class="modal-content"> <div class="modal-header" style='padding:12px 11px;'> <div class="col-md-3"> <h4 class="modal-title" style='font-size:14px;'>   : <span id='logs_count'></span></h4> </div> <div class='col-md-4'> <span id='map_send'></span> </div> <div class="col-md-5" style='text-align:right;'> <div class="form-check-inline" style='display:inline-block;margin:2px 32px;'> <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input dis_auto_refresh" id="dis_auto_refresh" > <label for="dis_auto_refresh" class="custom-control-label"><b>-</b></label> </div> </div> <button type="button" class="btn btn-danger btn-xs clear_report_log" value="2"> </button> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span >&times;</span> </button> </div> </div> <div class="modal-body" style='padding:0;'> <pre id='view_log'><?=$view_log;?></pre> </div> </div> </div> </div> <?if($_SESSION['rang'] == 1){?> <div class="modal fade" id="proxy_box" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" > <div class="modal-dialog modal-dialog-centered" role="document" > <div class="modal-content"> <div class="modal-header" style='padding:12px 11px;'> <h4 class="modal-title" style='font-size:14px;'>  : </h4> </div> <div class="modal-body" style='padding:0;'> <div class='col-md-12' style='padding:10px 10px;display:inline-block;'> <label><b>Telegram :</b></label> <select class='select2 proxy_account' id='proxy_account' style='width:100%;margin-bottom:6px;'> <? $r = mysqli_query($db,"SELECT `id`,`profile_tg`,`name` FROM `accounts_setting` WHERE `user_id` = '$user_id'"); while($list = mysqli_fetch_assoc($r)) { if($list['id'] == $self_account_id){ $sel = 'selected'; } else { $sel = ''; } if(empty($list['name'])){ $name = '+'.str_replace('.tg','',$list['profile_tg']); } else { $name = $list['name']; } ?><option value='<?=$list['id'];?>' <?=$sel;?>><?=$name;?></option><? ?> <?}?> </select> <label><b> :</b></label> <select class='select2 proxy_type' id='proxy_type' style='width:100%;margin-bottom:6px;'> <option value='0'> </option> <option value='1'>SOCKS4 - IPv4</option> <option value='2'>SOCKS5 - IPv4</option> <option value='3'>MTPROTO - IPv6</option> </select> <div id='proxy_input'> <label><b>:</b></label> <input type="text" class="form-control form-control-sm" id="proxy" value="" placeholder='' > </div> <button type="button" class="btn btn-success btn-xs save_proxy_account" ><i class="fa fa-save"></i> </button> </div> </div> </div> </div> </div> <?}?> </body> </div> </html>

Function Calls

None

Variables

None

Stats

MD5 ff306f755d9b8004ab535828402c8f22
Eval Count 0
Decode Time 188 ms