/** * Display the system information, including Bonfire and PHP versions. * * @return void */ public function index() { // Date helper is used for user_time(). $this->load->helper('date'); $dateFormat = 'g:i a'; $data = array('sysinfo_version_bf' => BONFIRE_VERSION, 'sysinfo_version_ci' => CI_VERSION, 'sysinfo_version_php' => phpversion(), 'sysinfo_time_server' => date($dateFormat), 'sysinfo_time_local' => user_time(time(), false, $dateFormat), 'sysinfo_db_name' => $this->db->database, 'sysinfo_db_server' => $this->db->platform(), 'sysinfo_db_version' => $this->db->version(), 'sysinfo_db_charset' => $this->db->char_set, 'sysinfo_db_collation' => $this->db->dbcollat, 'sysinfo_basepath' => BASEPATH, 'sysinfo_apppath' => APPPATH, 'sysinfo_site_url' => site_url(), 'sysinfo_environment' => ENVIRONMENT); Template::set('info', $data); Template::render(); }
/** * Display the system information, including Bonfire and PHP versions. * * @return void */ public function index() { // Date helper is used for user_time(). $this->load->helper('date'); $dateFormat = 'g:i a'; $data = array('sysinfo_version_bf' => BONFIRE_VERSION, 'sysinfo_version_ci' => CI_VERSION, 'sysinfo_version_php' => phpversion(), 'sysinfo_time_server' => date($dateFormat), 'sysinfo_time_local' => user_time(time(), false, $dateFormat), 'sysinfo_db_name' => $this->db->database, 'sysinfo_db_server' => $this->db->platform(), 'sysinfo_db_version' => $this->db->version(), 'sysinfo_db_charset' => $this->db->char_set, 'sysinfo_db_collation' => $this->db->dbcollat, 'sysinfo_basepath' => BASEPATH, 'sysinfo_apppath' => APPPATH, 'sysinfo_site_url' => site_url(), 'sysinfo_environment' => ENVIRONMENT); $this->config->load('installer_lib', true, true); $installerConfig = $this->config->item('installer_lib'); if (is_array($installerConfig)) { foreach ($installerConfig as $key => $value) { if (is_array($value)) { $data["sysinfo_{$key}"] = ''; $writable = $this->checkWritable($value); foreach ($value as $path) { $data["sysinfo_{$key}_" . str_replace(array('/', '\\', '.'), '_', $path)] = lang($writable[$path] ? 'sysinfo_writable' : 'sysinfo_not_writable'); } } else { $data["sysinfo_{$key}"] = $value; } } } Template::set('info', $data); Template::render(); }
" id="comment<?php echo $comment->getId(); ?> " class="comment <?php if (isNew($sf_user, $comment->getCreatedAt(), "comments" . $comment->getPost()->getId() . "Time")) { echo ' commentnew'; } ?> "> <?php if (!isset($level)) { $level = 0; } ?> <div class="avatar"><img src="/images/comments.gif" title="<?php echo user_time($comment->getCreatedAt()); ?> " /></div> <div class="txt"> <?php echo $comment->getCommentParsed(ESC_RAW); ?> — <span> <a <?php if ($comment->getUser()->isOnline()) { echo 'class="online_username" '; if ($comment->getUser()->getLastStatus() && $comment->getUser()->getLastStatus()->getText()) { echo 'title="' . $comment->getUser()->getLastStatus()->getText() . '"'; } else { echo 'title="' . __('сейчас на сайте') . '"';
<?php echo $user->getProfile()->getAbout(); ?> <?php } else { ?> <i><?php echo __('нет данных'); ?> </i> <?php } ?> </span> <br/> <span> <?php echo __('С нами с') . ': '; ?> <span id="usertime<?php echo $user->getId(); ?> "> <?php echo user_time($user->getCreatedAt()); ?> </span> </span> <br/>
<th><?php echo lang('sysinfo_time_server'); ?> </th> <td><?php echo date($dateFormat); ?> </td> </tr> <tr> <th><?php echo lang('sysinfo_time_local'); ?> </th> <td><?php echo user_time(time(), false, $dateFormat); ?> </td> </tr> <tr> <th><?php echo lang('sysinfo_db_name'); ?> </th> <td><?php echo $this->db->database; ?> </td> </tr> <tr> <th><?php
<?php include_partial('post/post_content', array('post' => $post, 'tagStyle' => $tagStyle)); ?> <?php } else { ?> <?php include_partial('post/post_tags', array('post' => $post, 'tagStyle' => $tagStyle)); ?> <?php } ?> <div class="ufoot"> <span class="date"> <?php echo user_time($post->getCreatedAt()); ?> </span> <span class="manage"> <?php echo link_to(__('поделиться'), 'post/show?id=' . $post->getId(), array('id' => 'post_share_link' . $post->getId(), 'title' => __('поделиться ссылкой на пост с друзьями'), 'class' => 'link', 'onclick' => '$j("#post_share_form' . $post->getId() . '").toggle("fast").load("' . url_for("post/share?id=" . $post->getId()) . '");return false;')); ?> <?php if ($sf_user->isAuthenticated() && (!$post->isOld() && $sf_user->getGuardUser() == $post->getUser() || $sf_user->getGuardUser()->getIsSuperAdmin())) { ?> <?php echo link_to(__('удалить'), 'post/delete?id=' . $post->getId(), array('title' => __('удалить пост'), 'class' => "delete", 'onclick' => "return confirm('" . __('Действительно удалить пост?') . "')")); ?> <?php