Changeset 1071
- Timestamp:
- 12/13/09 12:14:06 (2 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
common/db/attachment.php (modified) (1 diff)
-
scripts/check-attachments (modified) (1 diff)
-
scripts/recursive-move (modified) (2 diffs)
-
scripts/update-ratings (modified) (3 diffs)
-
www/config.php (modified) (1 diff)
-
www/macros/macro_roundparam.php (modified) (2 diffs)
-
www/views/header.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/common/db/attachment.php
r997 r1071 3 3 require_once(IA_ROOT_DIR."common/db/db.php"); 4 4 require_once(IA_ROOT_DIR."common/attachment.php"); 5 require_once(IA_ROOT_DIR."common/cache.php"); 5 6 6 7 // Add $attachment to cache if not null and return $attachment. -
trunk/scripts/check-attachments
r884 r1071 57 57 if (read_bool("Want to delete them?", false)) { 58 58 foreach ($extra_atts as $att) { 59 attachment_delete ($att['id']);59 attachment_delete_by_id($att['id']); 60 60 } 61 61 } -
trunk/scripts/recursive-move
r852 r1071 6 6 7 7 log_print("Recursive page move, for huge changes."); 8 db_connect(); 8 9 9 10 $src = read_line("Source root?", 'task'); … … 23 24 foreach ($page_list as $page) { 24 25 $old_name = $page['name']; 25 $new_name = preg_replace("/^".preg_quote($src, '/').'/si', preg_quote($dst, '/'), $old_name);26 $new_name = preg_replace("/^".preg_quote($src, '/').'/si', $dst, $old_name); 26 27 textblock_move($old_name, $new_name); 27 28 } -
trunk/scripts/update-ratings
r1017 r1071 74 74 log_print(count($round_users) . " users registered for this round."); 75 75 foreach ($round_users as $row) { 76 if (!isset($row['username'])) {77 continue;78 }79 80 76 log_assert(isset($row['username'])); 81 77 $scores[$row['username']] = 0; … … 87 83 log_print(count($round_rows) . " users were scored in this round."); 88 84 foreach ($round_rows as $row) { 89 if (!isset($row['user_name'])) {90 continue;91 }92 93 85 log_assert(isset($row['user_name']) && isset($row['score'])); 94 86 if (isset($scores[$row['user_name']])) { … … 103 95 log_print("Updating database..."); 104 96 foreach ($round_users as $row) { 105 if (!isset($row['username'])) {106 continue;107 }108 109 97 $username = $row['username']; 110 98 $user_id = $row['user_id']; -
trunk/www/config.php
r1020 r1071 41 41 // Date formatting for the user is done in www/format/format.php 42 42 define('IA_DATE_DEFAULT_TIMEZONE', 'Europe/Bucharest'); 43 define('IA_DATE_DEFAULT_FORMAT', '% A %e %B %Y %H:%M:%S');43 define('IA_DATE_DEFAULT_FORMAT', '%e %B %Y %H:%M:%S'); 44 44 45 45 // mail sender -
trunk/www/macros/macro_roundparam.php
r1045 r1071 2 2 3 3 require_once(IA_ROOT_DIR . "common/db/round.php"); 4 require_once(IA_ROOT_DIR . "www/format/format.php"); 4 5 5 6 // Displays a round field, be it a hard-coded field such as round title or a grader parameter such as `type`. … … 60 61 $html .= "data necunoscuta"; 61 62 } else { 62 $html .= format_date($round['start_time']); 63 $html .= format_date($round['start_time'], 64 '%A %e %B %Y, la ora %H:%M:%S'); 63 65 } 64 66 break; -
trunk/www/views/header.php
r1055 r1071 40 40 <meta name="verify-v1" content="PQDTb5Advw297iADXVUYuxh0z+iQKfq1wtYWnfHCb1Y=" /> 41 41 <meta name="verify-v1" content="GUKPcDm0TzwAR7r5xbagq576p/YWH9su/Ca4o8YlYBg=" /> <!--bogdan2412--> 42 <meta name="google-site-verification" content="T_HFYNIO3S70696yFC5rkbPn339gjnfVwMqYPmU866I" /> <!--devilkind--> 42 43 <?php 43 44 }
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)