Changeset 945


Ignore:
Timestamp:
11/15/08 16:05:16 (4 years ago)
Author:
bogdan2412
Message:

Merge changes from live

Location:
trunk
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/common/email.php

    r852 r945  
    3333 
    3434    // headers 
    35     $headers = 'From: ' . $from . "\r\n" . 
    36                'Reply-To: ' . $reply_to . "\r\n" . 
     35    $headers = 'From: ' . $from . "\n" . 
     36               'Reply-To: ' . $reply_to . "\n" . 
     37               "Content-type: text/plain\n" . 
    3738               'X-Mailer: infoarena/newsletter'; 
    3839 
  • trunk/scripts/link-task-forum

    r943 r945  
    100100        continue; 
    101101    } 
    102     $str2 = strtoupper(($task['order']-1).$page['title']); 
     102    $str2 = strtoupper(($task['order']-1).$task['title']); 
    103103     
    104104    if ($task['order'] <= 10) {  
     
    123123        log_warn('Numarul pentru problema "'.$task['id'].'" este gresit! Am cautat '.$str1.' si '.$str2); 
    124124        $str1 = strtoupper($task['id']); 
    125         $str2 = strtoupper($page['title']); 
     125        $str2 = strtoupper($task['title']); 
    126126        for ($i = count($topics)-1; $i >= 0; --$i) { 
    127127            if (match($topics[$i]['subject'], $str1) || match($topics[$i]['subject'], $str2)) { 
  • trunk/scripts/send-newsletter

    r905 r945  
    2626function list_valid_ids() { 
    2727    $valid = array( 
    28         'all', 'admins', 'rated', 'test' 
     28        'all', 'admins', 'rated', 'test', 'tinytest' 
    2929    ); 
    3030    return $valid; 
     
    5656            $usernames = array('wickedman', 'fluffy', 'domino', 'silviug', 
    5757                               'Cosmin', 'wick3dman'); 
     58            $query = "SELECT * FROM ia_user 
     59                      WHERE username IN ('".join("', '", $usernames)."') 
     60                      ORDER BY full_name"; 
     61            return db_fetch_all($query); 
     62 
     63        case 'tinytest': 
     64            $usernames = array('wickedman', 'wick3dman'); 
    5865            $query = "SELECT * FROM ia_user 
    5966                      WHERE username IN ('".join("', '", $usernames)."') 
  • trunk/www/config.php

    r941 r945  
    1616 
    1717// maximum attachment size for wiki pages 
    18 define("IA_ATTACH_MAXSIZE", 20*1024*1024); 
     18define("IA_ATTACH_MAXSIZE", 60*1024*1024); 
    1919 
    2020// maximum jobs to reeval 
  • trunk/www/controllers/textblock.php

    r943 r945  
    9292    $diff_title = diff_inline(array($revfrom['title'], $revto['title'])); 
    9393    $diff_content = diff_inline(array($revfrom['text'], $revto['text'])); 
     94    $diff_security = diff_inline(array($revfrom['security'], $revto['security'])); 
    9495 
    9596    $view = array(); 
     
    100101    $view['diff_title'] = $diff_title; 
    101102    $view['diff_content'] = $diff_content; 
     103    $view['diff_security'] = $diff_security; 
    102104    execute_view_die('views/textblock_diff.php', $view); 
    103105} 
  • trunk/www/static/css/screen.css

    r919 r945  
    14231423} 
    14241424 
     1425.picture-box { 
     1426    font-size: .85em; 
     1427    padding: 5px; 
     1428    border: 1px solid gray; 
     1429    margin: 0 1em 1em 0; 
     1430    float: left; 
     1431} 
     1432 
     1433.picture-box img { 
     1434    border: 1px solid silver; 
     1435    display: block; 
     1436    margin-bottom: 5px; 
     1437} 
     1438 
     1439/* OKRs */ 
     1440 
     1441ul.okr > li:before { 
     1442    content: "O: "; 
     1443    font-weight: bold; 
     1444} 
     1445 
     1446ul.okr > li li:before { 
     1447    content: "KR: "; 
     1448    font-weight: bold; 
     1449} 
     1450 
     1451ul.okr li { 
     1452    list-style: none; 
     1453} 
     1454 
     1455ul.okr .comment { 
     1456    display: block; 
     1457    margin: 0 0 0 2em; 
     1458    color: gray; 
     1459} 
     1460 
  • trunk/www/views/header.php

    r938 r945  
    6868        <li><a href="<?= html_escape(url_home()) ?>">Home</a></li> 
    6969        <li><?= format_link_access(url_textblock('arhiva'), "Arhiva de probleme", 'a') ?></li> 
     70        <li><a href="<?= html_escape(url_textblock('arhiva-educationala')) ?>">Arhiva educationala</a></li> 
    7071        <li><a href="<?= html_escape(url_textblock('concursuri')) ?>">Concursuri</a></li> 
    7172        <li><a href="<?= html_escape(url_textblock('clasament-rating')) ?>">Clasament</a></li> 
  • trunk/www/views/textblock_diff.php

    r934 r945  
    6666?> 
    6767 
     68<?php 
     69if (empty($view['diff_security'])) { 
     70    echo "<h3>Nu exista diferente intre securitate.</h3>"; 
     71} 
     72else { 
     73    echo "<h3>Diferente intre securitate:</h3>"; 
     74    print_diff($view['diff_security']); 
     75} 
     76?> 
     77 
    6878<?php include('footer.php'); ?> 
Note: See TracChangeset for help on using the changeset viewer.