Changeset 4346
- Timestamp:
- 07/10/07 20:02:46 (6 years ago)
- Files:
-
- freepbx/branches/2.3.views/amp_conf/htdocs/admin/config.php (modified) (1 diff)
- freepbx/branches/2.3.views/amp_conf/htdocs/admin/header.php (modified) (1 diff)
- freepbx/branches/2.3.views/amp_conf/htdocs/admin/reports.php (modified) (4 diffs)
- freepbx/branches/2.3.views/amp_conf/htdocs/admin/views/freepbx.php (modified) (3 diffs)
- freepbx/branches/2.3.views/amp_conf/htdocs/admin/views/freepbx_admin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.3.views/amp_conf/htdocs/admin/config.php
r4345 r4346 309 309 } 310 310 311 $admin_template = $template = array(); 312 313 314 $admin_template['content'] = ob_get_contents(); 315 ob_end_clean(); 316 317 // build the admin interface (with menu) 318 $admin_template['fpbx_types'] = $types; 319 $admin_template['fpbx_menu'] = $fpbx_menu; 320 $admin_template['fpbx_usecategories'] = $amp_conf['USECATEGORIES']; 321 $admin_template['fpbx_type'] = $type; 322 323 // then load it and put it into the main freepbx interface 324 $template['content'] = loadview('freepbx_admin', $admin_template); 325 326 // setup main template 327 $template['currentFile'] = $currentFile; 328 $template['display'] = $display; 329 $template['title'] = "FreePBX administration"; 330 331 332 showview('freepbx', $template); 311 if ($quietmode) { 312 // send the output buffer 313 ob_end_flush(); 314 } else { 315 $admin_template = $template = array(); 316 317 318 $admin_template['content'] = ob_get_contents(); 319 ob_end_clean(); 320 321 // build the admin interface (with menu) 322 $admin_template['fpbx_types'] = $types; 323 $admin_template['fpbx_type_names'] = $type_names; 324 $admin_template['fpbx_menu'] = $fpbx_menu; 325 $admin_template['fpbx_usecategories'] = $amp_conf['USECATEGORIES']; 326 $admin_template['fpbx_type'] = $type; 327 $admin_template['display'] = $display; 328 329 // then load it and put it into the main freepbx interface 330 $template['content'] = loadview('freepbx_admin', $admin_template); 331 332 // setup main template 333 $template['display'] = $display; 334 $template['title'] = "FreePBX administration"; 335 $template['amp_conf'] = &$amp_conf; 336 337 338 showview('freepbx', $template); 339 } 333 340 334 341 ?> freepbx/branches/2.3.views/amp_conf/htdocs/admin/header.php
r4345 r4346 44 44 //get the current file name 45 45 $currentFile = $_SERVER["PHP_SELF"]; 46 $parts = Explode('/', $currentFile);46 $parts = explode('/', $currentFile); 47 47 //header('Content-type: text/html; charset=utf-8'); 48 48 $currentFile = $parts[count($parts) - 1]; freepbx/branches/2.3.views/amp_conf/htdocs/admin/reports.php
r4345 r4346 17 17 $message="Call Detail Reports"; 18 18 19 include 'header.php'; 20 19 21 // BUILD an SQL clause for any AMP User restrictions 20 session_register('AMP_SQL');22 //session_register('AMP_SQL'); 21 23 $low = $_SESSION["AMP_user"]->_extension_low; 22 24 $high = $_SESSION["AMP_user"]->_extension_high; … … 29 31 $_SESSION["AMP_SQL"] = ""; 30 32 } 31 32 include 'header.php';33 33 34 34 $display=1; … … 46 46 47 47 echo "<div id=\"cdr\"><ul id=\"metanav\">"; 48 foreach ($ amp_sectionsas $key=>$value) {48 foreach ($menu as $key=>$value) { 49 49 echo "<li class=\"".(($display==$key) ? 'current':'')."\"><a href=\"reports.php?display=".$key."\">".$value."</a></li>"; 50 50 } … … 59 59 </div> 60 60 61 < iframe width="100%" height="600" frameborder="0" align="top" scrolling="yes" src="cdr/cdr.php?s=<?php echo $display; echo ($display=='1' ? '&posted=1' : '');?>"></iframe>61 <!-- iframe width="100%" height="600" frameborder="0" align="top" scrolling="yes" src="cdr/cdr.php?s=<?php echo $display; echo ($display=='1' ? '&posted=1' : '');?>"></iframe> --> 62 62 freepbx/branches/2.3.views/amp_conf/htdocs/admin/views/freepbx.php
r4345 r4346 83 83 echo "</div>\n"; 84 84 85 $currentFile = basename($_SERVER["SCRIPT_NAME"]); 86 85 87 echo "\t\t<ul id=\"metanav\">\n"; 86 88 print_sub_tool( _("Management"), "manage.php" , $currentFile=='manage.php' ); … … 141 143 142 144 <?php 143 if ( isset($_SESSION['AMP_user']) && $amp_conf['AUTHTYPE'] != 'none') {145 if ( isset($_SESSION['AMP_user']) && isset($amp_conf['AUTHTYPE']) && ($amp_conf['AUTHTYPE'] != 'none')) { 144 146 echo _('Logged in: ').$_SESSION['AMP_user']->username; 145 147 echo ' (<a href="http'.(isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']!=''?'s':'').'://'; … … 153 155 $logoutPath = ($pathLength === false) ? '' : substr($_SERVER['PHP_SELF'],0,$pathLength); 154 156 155 echo $_SERVER['HTTP_HOST'].$logoutPath.'/logout.php">Logout</a>) :: ';157 echo $_SERVER['HTTP_HOST'].$logoutPath.'/logout.php">Logout</a>) '; 156 158 } 157 echo_($message);159 //echo ':: '._($message); 158 160 ?> </div> 159 161 freepbx/branches/2.3.views/amp_conf/htdocs/admin/views/freepbx_admin.php
r4345 r4346 45 45 $tab_num = 1; 46 46 foreach ($fpbx_types as $key=>$val) { 47 $type_name = (isset($ type_names[$val]) ? $type_names[$val] : ucfirst($val));47 $type_name = (isset($fpbx_type_names[$val]) ? $fpbx_type_names[$val] : ucfirst($val)); 48 48 echo '<li><a href="#nav-'.str_replace(' ','_',$val).'"><span>'.$type_name.'</span></a></li>'; 49 if ($val == $ type) {49 if ($val == $fpbx_type) { 50 50 $tab_num = $key+1; 51 51 }
