1 <?php global $_config; $_config_defaults;?>
3 <div class="admin_container">
6 $this->path_length = strlen($this->base_path);
8 echo '<ul class="fl-list-menu ">';
9 foreach ($this->top_level_pages as $page_info) {
10 echo '<li><a href="' . $page_info['url'] . '">' . $page_info['title'] . '</a> ';
12 $page_info['url'] = substr($page_info['url'], $this->path_length);
14 if ($this->pages[$page_info['url']]['children']) {
16 foreach ($this->pages[$page_info['url']]['children'] as $child) {
17 // check whether the page is set to be available for mobile themes. @see include/lib/menu_pages.php
18 if (page_available($child)) {
19 echo ' <li ><a href="'.$child.'">'._AT($this->pages[$child]['title_var']).'</a></li>';
24 echo '</li>'; //end top-tool
31 <div class="" style="">
32 <div class="input-form" >
34 <h3><?php echo _AT('social_switch'); ?></h3>
35 <p><?php echo _AT('social_switch_text'); ?></p>
37 <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
39 <legend id="social_networking"><?php echo _AT('social_switch'); ?></legend>(<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['just_social'] ? _AT('just_social') : _AT('social_and_lms')); ?>)
41 <input type="radio" name="just_social" value="1" id="social_y" <?php if($_config['just_social']) { echo 'checked="checked"'; }?> /><label for="social_y"><?php echo _AT('just_social'); ?></label> <br /><input type="radio" name="just_social" value="0" id="social_n" <?php if(!$_config['just_social']) { echo 'checked="checked"'; }?> /><label for="social_n"><?php echo _AT('social_and_lms'); ?></label>
44 <div class="row buttons">
45 <input type="submit" name="social_submit" value="<?php echo _AT('save'); ?>" />
51 <div class="input-form" >
53 <h3><?php echo _AT('donate'); ?></h3>
54 <p><?php echo _AT('donate_text'); ?></p>
58 <a href="http://www.atutor.ca/payment/index.php?project=ATutor-Donation"><img src="<?php echo $this->base_href; ?>/images/donate.gif" height="28" width="136" border="0" alt="<?php echo _AT('donate'); ?>" /></a><br /><br />
63 <div class="input-form">
64 <form method="get" action="mods/_core/users/instructor_requests.php">
66 <h3><?php echo _AT('instructor_requests'); ?></h3>
68 <?php foreach($this->row_instructor as $key => $value): ?>
70 <p><?php echo _AT('instructor_requests_text', $value['cnt']); ?></p>
74 <div class="row buttons">
75 <input type="submit" name="submit" value="<?php echo _AT('view'); ?>" />
81 <div class="input-form">
82 <form method="get" action="mods/_standard/patcher/index_admin.php">
84 <h3><?php echo _AT('available_patches'); ?></h3>
85 <p><?php echo _AT('available_patches_text', $this->cnt); ?></p>
88 <div class="row buttons">
89 <input type="submit" name="submit" value="<?php echo _AT('view'); ?>" />
93 <div class="input-form" >
95 <h3><?php echo _AT('statistics_information'); ?></h3>
98 <?php if ($this->db_size): ?>
99 <dt><?php echo _AT('database'); ?>:</dt>
100 <dd><?php echo number_format($this->db_size/AT_KBYTE_SIZE/AT_KBYTE_SIZE,2); ?> <acronym title="<?php echo _AT('megabytes'); ?>"><?php echo _AT('mb'); ?></acronym></dd>
103 <?php if ($this->du_size): ?>
104 <dt><?php echo _AT('disk_usage'); ?>:</dt>
105 <dd><?php echo number_format($this->du_size/AT_KBYTE_SIZE,2); ?> <acronym title="<?php echo _AT('megabytes'); ?>"><?php echo _AT('mb'); ?></acronym></dd>
108 <dt><?php echo _AT('courses'); ?>:</dt>
109 <dd><?php echo $this->num_courses; ?></dd>
111 <dt><?php echo _AT('users'); ?>:</dt>
112 <dd><?php echo $this->num_users; ?></dd>
114 <dt><?php echo _AT('atutor_version'); ?>:</dt>
116 require('../svn.php');
117 if (!empty($svn_data)) {
118 $svn_data = explode("\n", $svn_data);
119 if (substr($svn_data[1], 0, 1) == 'r') {
120 $svn_data = $svn_data[1];
121 } else if (substr($svn_data[2], 0, 1) == 'r') {
122 $svn_data = $svn_data[2];
125 if (count($svn_data) > 1) {
127 $build_date = date('Y-m-d H:i:s');
129 $svn_data = explode(' ', $svn_data);
131 $build = $svn_data[0];
132 $build_date = $svn_data[4] .' '. $svn_data[5];
134 $build_str = '(' . $build . ' - '.$build_date . ')';
137 <dd><?php echo _AT('atutor_version_text', VERSION . $build_str, urlencode(VERSION)); ?></dd>
139 <dt><?php echo _AT('php_version'); ?>:</dt>
140 <dd><?php echo PHP_VERSION; ?></dd>
142 <dt><?php echo _AT('mysql_version'); ?>:</dt>
143 <dd><?php echo $mysql_version; ?></dd>
145 <dt><?php echo _AT('os'); ?>:</dt>
146 <dd><?php echo @php_uname('s') . ' ' . @php_uname('r'); ?></dd>