Minor -format code.

1.9.x
Julio Montoya 12 years ago
parent ceb227d97d
commit e561374eba
  1. 2
      main/inc/ajax/events.ajax.php
  2. 3
      main/inc/ajax/exercise.ajax.php
  3. 1
      main/inc/ajax/form.ajax.php
  4. 2
      main/inc/ajax/glossary.ajax.php
  5. 3
      main/inc/ajax/link.ajax.php
  6. 1
      main/inc/ajax/myspace.ajax.php
  7. 2
      main/inc/ajax/online.ajax.php
  8. 1
      main/inc/ajax/timeline.ajax.php
  9. 4
      main/inc/ajax/user_manager.ajax.php

@ -1,5 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
require_once '../global.inc.php';
$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : null;

@ -132,7 +132,8 @@ switch ($action) {
$h = floor($remaining/3600);
$m = floor(($remaining - ($h*3600))/60);
$s = ($remaining - ($h*3600) - ($m*60));
$array = array( $row['firstname'],
$array = array(
$row['firstname'],
$row['lastname'],
api_format_date($row['start_date'], DATE_TIME_FORMAT_LONG).' ['.($h>0?$h.':':'').sprintf("%02d",$m).':'.sprintf("%02d",$s).']',
$row['count_questions'],

@ -1,6 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
require_once '../global.inc.php';
$action = isset($_REQUEST['a']) ? $_REQUEST['a'] : null;

@ -1,5 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Glossary;
require_once '../global.inc.php';

@ -14,8 +14,7 @@ switch ($action) {
case 'check_url':
if (api_is_allowed_to_edit(null, true)) {
$url = $_REQUEST['url'];
//Check if curl is available
// Check if curl is available.
if (!in_array('curl', get_loaded_extensions())) {
echo '';
exit;

@ -57,7 +57,6 @@ switch ($action) {
}
header('Cache-Control: no-cache');
echo json_encode($db); // requires: PHP >= 5.2.0, PECL json >= 1.2.0
break;
}
exit;

@ -1,5 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
require_once '../global.inc.php';
require_once api_get_path(LIBRARY_PATH).'timeline.lib.php';

@ -9,9 +9,8 @@ $action = $_GET['a'];
switch ($action) {
case 'get_user_popup':
$user_info = api_get_user_info($_REQUEST['user_id']);
//var_dump($user_info);
echo '<div class="well">';
echo '<div class="row">';
echo '<div class="span2">';
@ -110,3 +109,4 @@ switch ($action) {
echo '';
}
exit;

Loading…
Cancel
Save