Exemplo n.º 1
0
 function account()
 {
     $this->data['title'] = lang('off_acc_inf') . gen_name_profile();
     $user = get_user();
     $world = get_world();
     if (is_gm()) {
         $query = $this->MSSQL->query(query_config('query_account_q2'), get_login());
     } else {
         $query = $this->MSSQL->query(query_config('query_account_q1'), get_login());
     }
     $this->table->set_template(tpl_table());
     if ($query->num_rows() > 0) {
         foreach ($query->result() as $row) {
             if (!is_gm()) {
                 // $this->table->add_row(lang('off_acc_serial'), $row->serial);
                 $this->table->add_row(lang('off_acc_id'), xss_clean($row->id));
                 $this->table->add_row(lang('off_acc_pass'), $this->_constr_change('main/password', 'password', $row->password));
                 if (isset($row->Email)) {
                     $this->table->add_row(lang('off_acc_email'), $this->_constr_change('main/email', 'email', $row->Email));
                 }
                 //if(isset($row->Email))$this->table->add_row(lang('off_acc_email'),$row->Email);
                 $this->table->add_row(lang('off_acc_ct'), $row->createtime);
                 $this->table->add_row(lang('off_acc_ci'), $row->createip);
                 $this->table->add_row(lang('off_acc_lci'), $row->lastconnectip);
                 $this->table->add_row(lang('off_acc_llt'), $row->lastlogintime);
                 $this->table->add_row(lang('off_acc_llot'), $row->lastlogofftime);
                 if (isset($row->uilock_pw)) {
                     $this->table->add_row(lang('off_acc_up'), $this->_constr_change('main/fgpass', 'fgpass', $row->uilock_pw));
                 }
                 //if(isset($row->uilock_hintanswer))  $this->table->add_row(lang('off_acc_uh'), $row->uilock_hintanswer);
                 $this->table->add_row(lang('off_acc_tp'), $row->TrunkPass);
                 $this->table->add_row(lang('off_acc_ha'), $row->HintAnswer);
                 $this->table->add_row(lang('off_acc_stat'), CheckBan($row->serial));
                 if (config('prembtn', 'core') == true) {
                     $this->table->add_row(lang('off_premium'), $this->_is_premium($row->id, $row->serial));
                 }
             } else {
                 // $this->table->add_row(lang('off_acc_serial'), $row->Serial);
                 $this->table->add_row(lang('off_acc_id'), xss_clean($row->ID));
                 $this->table->add_row(lang('off_acc_pass'), $this->_constr_change('main/gmpassword', 'password', $row->PW));
                 $this->table->add_row(lang('off_acc_ct'), $row->CreateDT);
                 $this->table->add_row(lang('off_acc_lci'), $row->LastConnIP);
                 $this->table->add_row(lang('off_acc_llt'), $row->LastLoginDT);
                 $this->table->add_row(lang('off_acc_llot'), $row->LastLogoffDT);
                 $this->table->add_row('Grade', $row->Grade);
                 $this->table->add_row('SubGrade', $row->SubGrade);
                 $this->table->add_row(lang('off_activeto'), $row->ExpireDT);
                 $this->table->add_row(lang('off_acc_tp'), $row->TrunkPass);
                 $this->table->add_row(lang('off_acc_ha'), $row->HintAnswer);
                 $this->table->add_row(lang('off_acc_stat'), CheckBan($row->Serial));
             }
             $this->data['content'] = $this->table->generate();
         }
     } else {
         $this->data['content'] = lang('off_error_1');
     }
     compile();
 }
Exemplo n.º 2
0
if (is_logged()) {
    $menu .= '<li>' . anchor('main', lang('off_main')) . '</li>';
}
if (is_logged()) {
    $menu .= '<li>' . anchor('main/account', lang('off_menu_acci')) . '</li>';
}
if (is_logged()) {
    $menu .= '<li>' . anchor('shop', lang('off_menu_shop')) . '</li>';
}
if (is_logged()) {
    $menu .= '<li>' . anchor('main/characters', lang('off_menu_chari')) . '</li>';
}
//if(is_logged())$menu.='<li>'.anchor('vote',lang('off_vote')).'</li>';
if (config('module_vote', 'core') == true) {
    if (is_logged()) {
        $menu .= '<li>' . anchor('vote', lang('off_vote')) . '</li>';
    }
}
if (config('module_mmotop', 'core') == true) {
    if (is_logged()) {
        $menu .= '<li>' . anchor('mmotop', 'Голосовать на mmotop') . '</li>';
    }
}
if (is_logged()) {
    $menu .= '<li>' . anchor('main/profile', lang('off_profile_menu')) . '</li>';
}
if (is_logged() || is_gm() || is_adm_logged()) {
    $menu .= '<li>' . anchor('main/logout', lang('off_logout')) . '</li>';
}
echo $menu;
//END
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "  ";
     $template = $this->env->resolveTemplate(get_config_item("System", "template", "office/OfficeConfig") . "/template/header.tpl");
     $template->display($context);
     echo " \n      <section id=\"main-content\">\n          <section class=\"wrapper\">\n              <!-- page start-->\n              <div class=\"row\" >\n                  <div class=\"col-lg-12\">\n                      <!--breadcrumbs start -->\n                      <ul class=\"breadcrumb\">\n                          <li><a data-pjax href=\"";
     // line 9
     echo twig_escape_filter($this->env, site_url(), "html", null, true);
     echo "main\"><i class=\"icon-home\"></i> ";
     echo twig_escape_filter($this->env, lang("title_main"), "html", null, true);
     echo "</a></li>\n                          <li>";
     // line 10
     echo twig_escape_filter($this->env, lang("profile"), "html", null, true);
     echo "</li>\n                      </ul>\n                      <!--breadcrumbs end -->\n                  </div>\n                  <aside class=\"profile-nav col-lg-3 alt blue-border\">\n                  ";
     // line 15
     if (isset($context["widget_system"])) {
         $_widget_system_ = $context["widget_system"];
     } else {
         $_widget_system_ = null;
     }
     echo twig_escape_filter($this->env, $this->getAttribute($_widget_system_, "render_all", array(0 => "main", 1 => "small"), "method"), "html", null, true);
     echo "     \n                  </aside>       \n                  <aside class=\"profile-info col-lg-9\">\n                        <section class=\"panel animated fadeInUp\">\n                            <div class=\"bio-graph-heading\">\n                                <h4>";
     // line 20
     echo twig_escape_filter($this->env, lang("account_information"), "html", null, true);
     echo ": <b>";
     if (isset($context["session"])) {
         $_session_ = $context["session"];
     } else {
         $_session_ = null;
     }
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_session_, "userdata", array(0 => "user_logged_in"), "method"), "login"), "html", null, true);
     echo "</b></h4>\n                            </div>\n                            <div class=\"panel-body bio-graph-info\">\n                                <h1>";
     // line 23
     echo twig_escape_filter($this->env, lang("information"), "html", null, true);
     echo "</h1>\n                                <div class=\"row\">\n                                  ";
     // line 25
     if (isset($context["session"])) {
         $_session_ = $context["session"];
     } else {
         $_session_ = null;
     }
     if (is_gm($this->getAttribute($this->getAttribute($_session_, "userdata", array(0 => "user_logged_in"), "method"), "login"))) {
         // line 26
         echo "                                    <div class=\"bio-row\">\n                                        <p><span>";
         // line 27
         echo twig_escape_filter($this->env, lang("login_text"), "html", null, true);
         echo " </span>: <i><b>";
         if (isset($context["session"])) {
             $_session_ = $context["session"];
         } else {
             $_session_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_session_, "userdata", array(0 => "user_logged_in"), "method"), "login"), "html", null, true);
         echo "</b></i></p>\n                                    </div>\n                                    <div class=\"bio-row\">\n                                        <p><span>";
         // line 30
         echo twig_escape_filter($this->env, lang("create_date_text"), "html", null, true);
         echo "</span>: <i><b>";
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_account_info_, "CreateDT"), "html", null, true);
         echo "</b></i></p>\n                                    </div>\n                                    <div class=\"bio-row\">\n                                        <p><span>";
         // line 33
         echo twig_escape_filter($this->env, lang("last_enter_ip_text"), "html", null, true);
         echo "</span>: <i><b>";
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_account_info_, "LastConnIP"), "html", null, true);
         echo "</b></i></p>\n                                    </div>\n                                    <div class=\"bio-row\">\n                                        <p><span>";
         // line 36
         echo twig_escape_filter($this->env, lang("last_enter_text"), "html", null, true);
         echo "</span>: <i><b>";
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_account_info_, "LastLoginDT"), "html", null, true);
         echo "</b></i></p>\n                                    </div>\n                                    <div class=\"bio-row\">\n                                        <p><span>";
         // line 39
         echo twig_escape_filter($this->env, lang("last_exit_text"), "html", null, true);
         echo "</span>: <i><b>";
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_account_info_, "LastLogoffDT"), "html", null, true);
         echo "</b></i></p>\n                                    </div>\n                                   <div class=\"bio-row\">\n                                        <p><span>";
         // line 42
         echo twig_escape_filter($this->env, lang("total_play_min"), "html", null, true);
         echo " </span>: <i><b>";
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_account_info_, "TotalLogMin"), "html", null, true);
         echo "</b></i></p>\n                                   </div>\n                                   <div class=\"bio-row\">\n                                        <p><span>Grade </span>: <i><b>";
         // line 45
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_account_info_, "Grade"), "html", null, true);
         echo "</b></i></p>\n                                   </div>\n                                   <div class=\"bio-row\">\n                                        <p><span>Sub Grade </span>: <i><b>";
         // line 48
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_account_info_, "SubGrade"), "html", null, true);
         echo "</b></i></p>\n                                   </div>\n                                    <div class=\"bio-row\">\n                                        <p><span>";
         // line 51
         echo twig_escape_filter($this->env, lang("bank_pw_text"), "html", null, true);
         echo " </span>: <a href=\"#\" class=\"btn btn-info\" onclick=\"show_pw('";
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, trim($this->getAttribute($_account_info_, "bank_pw")), "html", null, true);
         echo "','";
         echo twig_escape_filter($this->env, lang("bank_pw_text"), "html", null, true);
         echo "')\"> ";
         echo twig_escape_filter($this->env, lang("show_btn"), "html", null, true);
         echo "</a></p>\n                                    </div>\n                                  ";
     } else {
         // line 54
         echo "                                    <div class=\"bio-row\">\n                                        <p><span>";
         // line 55
         echo twig_escape_filter($this->env, lang("login_text"), "html", null, true);
         echo " </span>: <i><b>";
         if (isset($context["session"])) {
             $_session_ = $context["session"];
         } else {
             $_session_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_session_, "userdata", array(0 => "user_logged_in"), "method"), "login"), "html", null, true);
         echo "</b></i></p>\n                                    </div>\n                                    <div class=\"bio-row\">\n                                        <p><span>";
         // line 58
         echo twig_escape_filter($this->env, lang("create_date_text"), "html", null, true);
         echo "</span>: <i><b>";
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_account_info_, "createtime"), "html", null, true);
         echo "</b></i></p>\n                                    </div>\n                                    <div class=\"bio-row\">\n                                        <p><span>";
         // line 61
         echo twig_escape_filter($this->env, lang("create_ip_text"), "html", null, true);
         echo "</span>: <i><b>";
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_account_info_, "createip"), "html", null, true);
         echo "</b></i></p>\n                                    </div>\n                                    <div class=\"bio-row\">\n                                        <p><span>";
         // line 64
         echo twig_escape_filter($this->env, lang("last_enter_ip_text"), "html", null, true);
         echo "</span>: <i><b>";
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_account_info_, "lastconnectip"), "html", null, true);
         echo "</b></i></p>\n                                    </div>\n                                    <div class=\"bio-row\">\n                                        <p><span>";
         // line 67
         echo twig_escape_filter($this->env, lang("last_enter_text"), "html", null, true);
         echo "</span>: <i><b>";
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_account_info_, "lastlogintime"), "html", null, true);
         echo "</b></i></p>\n                                    </div>\n                                    <div class=\"bio-row\">\n                                        <p><span>";
         // line 70
         echo twig_escape_filter($this->env, lang("last_exit_text"), "html", null, true);
         echo "</span>: <i><b>";
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_account_info_, "lastlogofftime"), "html", null, true);
         echo "</b></i></p>\n                                    </div>\n                                    <div class=\"bio-row\">\n                                        <p><span>";
         // line 73
         echo twig_escape_filter($this->env, lang("email_text"), "html", null, true);
         echo " </span>: <i><b>";
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_account_info_, "Email"), "html", null, true);
         echo "</b></i></p>\n                                   </div>\n                                   <div class=\"bio-row\">\n                                        <p><span>";
         // line 76
         echo twig_escape_filter($this->env, lang("total_play_min"), "html", null, true);
         echo " </span>: <i><b>";
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_account_info_, "totallogmin"), "html", null, true);
         echo "</b></i></p>\n                                   </div>\n                                    <div class=\"bio-row\">\n                                        <p><span>";
         // line 79
         echo twig_escape_filter($this->env, lang("fireguard_pw_text"), "html", null, true);
         echo "</span>: <a href=\"#\" class=\"btn btn-info\" onclick=\"show_pw('";
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, trim($this->getAttribute($_account_info_, "uilock_pw")), "html", null, true);
         echo "', '";
         echo twig_escape_filter($this->env, lang("fireguard_pw_text"), "html", null, true);
         echo "')\"> ";
         echo twig_escape_filter($this->env, lang("show_btn"), "html", null, true);
         echo "</a></p>\n                                    </div>\n                                    <div class=\"bio-row\">\n                                        <p><span>";
         // line 82
         echo twig_escape_filter($this->env, lang("bank_pw_text"), "html", null, true);
         echo " </span>: <a href=\"#\" class=\"btn btn-info\" onclick=\"show_pw('";
         if (isset($context["account_info"])) {
             $_account_info_ = $context["account_info"];
         } else {
             $_account_info_ = null;
         }
         echo twig_escape_filter($this->env, trim($this->getAttribute($_account_info_, "bank_pw")), "html", null, true);
         echo "','";
         echo twig_escape_filter($this->env, lang("bank_pw_text"), "html", null, true);
         echo "')\"> ";
         echo twig_escape_filter($this->env, lang("show_btn"), "html", null, true);
         echo "</a></p>\n                                    </div>\n                                  ";
     }
     // line 85
     echo "                                </div>\n                            </div>\n                        </section>\n                        ";
     // line 88
     if (isset($context["widget_system"])) {
         $_widget_system_ = $context["widget_system"];
     } else {
         $_widget_system_ = null;
     }
     echo twig_escape_filter($this->env, $this->getAttribute($_widget_system_, "render_all", array(0 => "main", 1 => "big"), "method"), "html", null, true);
     echo " \n                  </aside>   \n              </div>\n              <!-- page end-->\n          </section>\n      </section>\n  ";
     // line 94
     $template = $this->env->resolveTemplate(get_config_item("System", "template", "office/OfficeConfig") . "/template/footer.tpl");
     $template->display($context);
 }
Exemplo n.º 4
0
                         irciv_privmsg("players[{$player}][{$array}][{$index}][{$key}]={$value}");
                     }
                     $irciv_data_changed = True;
                 } else {
                     irciv_privmsg("players[{$player}][{$array}][{$index}] not found");
                 }
             } else {
                 irciv_privmsg("invalid key");
             }
         } else {
             irciv_privmsg("syntax: [~civ] object-edit <account> <array> <index> <key> [<value>|\"<unset>\"]");
         }
     }
     break;
 case "player-edit":
     if (is_gm() == True) {
         if (count($parts) >= 2) {
             $player = $parts[0];
             $key = $parts[1];
             for ($i = 1; $i <= 2; $i++) {
                 array_shift($parts);
             }
             $value = implode(" ", $parts);
             if ($key != "") {
                 if (isset($player_data[$player]) == True) {
                     if ($value == "<unset>") {
                         unset($player_data[$player][$key]);
                         irciv_privmsg("key \"{$key}\" unset for player \"{$player}\"");
                     } else {
                         $player_data[$player][$key] = $value;
                         irciv_privmsg("key \"{$key}\" set with value \"{$value}\" for player \"{$player}\"");