Changeset 25


Ignore:
Timestamp:
Dec 3, 2005 9:17:54 PM (18 years ago)
Author:
scdev
Message:
 
Location:
trunk
Files:
2 added
2 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/module_maker/module.cli.php

    r24 r25  
    99
    1010$op = null;
    11 $valid_ops = array('clean', 'var');
     11$valid_ops = array('clean', 'var', 'test');
    1212
    1313// Test for a single argument.
     
    4040    }
    4141}
     42
     43switch ($op) {
     44case 'test' :
     45    echo "RUNNING MODULE MAKER IN TEST MODE.\n\n";
     46    break;
     47default :
     48   
     49}
     50
    4251
    4352/******************************************************************************
     
    453462} else {
    454463    echo "Writing admin script: $admin_dir/$admin_script\n";
    455     $fp = fopen("$admin_dir/$admin_script", "w");
    456     fwrite($fp, preg_replace($search, $replace, $skel_files['skel_admin_script']));
    457     fclose($fp);
     464    if ('test' != $op) {
     465        $fp = fopen("$admin_dir/$admin_script", "w");
     466        fwrite($fp, preg_replace($search, $replace, $skel_files['skel_admin_script']));
     467        fclose($fp);
     468    }
    458469}
    459470
     
    463474} else {
    464475    echo "Writing admin list template: $admin_tpl_dir/$admin_list_template\n";
    465     $fp = fopen("$admin_tpl_dir/$admin_list_template", "w");
    466     fwrite($fp, preg_replace($search, $replace, $skel_files['skel_admin_list_template']));
    467     fclose($fp);
     476    if ('test' != $op) {
     477        $fp = fopen("$admin_tpl_dir/$admin_list_template", "w");
     478        fwrite($fp, preg_replace($search, $replace, $skel_files['skel_admin_list_template']));
     479        fclose($fp);
     480    }
    468481}
    469482
     
    473486} else {
    474487    echo "Writing admin form template: $admin_tpl_dir/$admin_form_template\n";
    475     $fp = fopen("$admin_tpl_dir/$admin_form_template", "w");
    476     fwrite($fp, preg_replace($search, $replace, $skel_files['skel_admin_form_template']));
    477     fclose($fp);
     488    if ('test' != $op) {
     489        $fp = fopen("$admin_tpl_dir/$admin_form_template", "w");
     490        fwrite($fp, preg_replace($search, $replace, $skel_files['skel_admin_form_template']));
     491        fclose($fp);
     492    }
    478493}
    479494
     
    483498} else {
    484499    echo "Writing public script: $public_dir/$public_script\n";
    485     $fp = fopen("$public_dir/$public_script", "w");
    486     fwrite($fp, preg_replace($search, $replace, $skel_files['skel_public_script']));
    487     fclose($fp);
     500    if ('test' != $op) {
     501        $fp = fopen("$public_dir/$public_script", "w");
     502        fwrite($fp, preg_replace($search, $replace, $skel_files['skel_public_script']));
     503        fclose($fp);
     504    }
    488505}
    489506
     
    493510} else {
    494511    echo "Writing public list template: $public_tpl_dir/$public_list_template\n";
    495     $fp = fopen("$public_tpl_dir/$public_list_template", "w");
    496     fwrite($fp, preg_replace($search, $replace, $skel_files['skel_public_list_template']));
    497     fclose($fp);
     512    if ('test' != $op) {
     513        $fp = fopen("$public_tpl_dir/$public_list_template", "w");
     514        fwrite($fp, preg_replace($search, $replace, $skel_files['skel_public_list_template']));
     515        fclose($fp);
     516    }
    498517}
    499518
     
    503522} else {
    504523    echo "Writing public detail template: $public_tpl_dir/$public_detail_template\n";
    505     $fp = fopen("$public_tpl_dir/$public_detail_template", "w");
    506     fwrite($fp, preg_replace($search, $replace, $skel_files['skel_public_detail_template']));
    507     fclose($fp);
     524    if ('test' != $op) {
     525        $fp = fopen("$public_tpl_dir/$public_detail_template", "w");
     526        fwrite($fp, preg_replace($search, $replace, $skel_files['skel_public_detail_template']));
     527        fclose($fp);
     528    }
    508529}
    509530
  • trunk/css/utilities.inc.css

    r24 r25  
    1111/* BEAU: I format my CSS using BBEdit's Markup->CSS->Format command. Would you like to use that as well so our code looks consistant? */
    1212/*_____________________ FORMS ____________________*/
    13 input, select, input.submit
     13
     14/* BEAU: Had to comment-out all generic definitions... They fucked golbon. I guess the only things to have that are safe are custom class identifiers. Maybe we should standardize on classes we define in the codebase so they never conflict with other people's css, like: codebase_small, or cb_small? */
     15/*
     16input, select, submit
    1417{
    1518    color: #000;
     
    1821}
    1922
    20 /* BEAU: I changed this to input.submit, since it is an <input> tag. Is that correct? It definition doesn't seem to do anything regardless of how it's set. */
    21 input.submit
     23submit
    2224{
    2325    font-weight: bold;
    2426    margin: 0.5em;
    2527}
     28*/
    2629
    27 input
    28 {
    29     margin: 0.5em 0.5em 0 0;
    30 }
    31 
     30/*
    3231form table select, form table input
    3332{
    3433    margin-top: 0;
    3534}
     35*/
    3636
    3737/*
    38 BEAU: I want more text box widths! I find need for boxes that fit 5em, 10em, 20em, and 40em widths. These should be in EMs so text can resize and still fit. Since it is useful to apply a width to other form elements to have them similar sizes (not always a text box, such as <select multiple>) I propose renaming them to "input.tiny", "input.small", "input.medium", "input.large", and "input.half" (not sure how you would do "half" in EMs however.
     38BEAU: I want more text box widths! I find need for boxes that fit 5em, 10em, 20em, and 40em widths. These should be in EMs so text can resize and still fit. Since it is useful to apply a width to other form elements to have them similar sizes (not always a text box, such as <select multiple>) I propose renaming them to "input.tiny", "input.small", "input.medium", "input.large", and "input.half" (not sure how you would do "half" in EMs however. DONE.
    3939*/
     40
     41input.tiny, textarea.tiny, select.tiny,
     42input.small, textarea.small, select.small,
     43input.medium, textarea.medium, select.medium,
     44input.large, textarea.large, select.large
     45{
     46    margin: 0 0.5em 0 0;
     47}
    4048
    4149input.tiny, textarea.tiny, select.tiny
     
    9098}
    9199
     100/*
    92101form label
    93102{
     
    95104    font-weight: bold;
    96105}
     106*/
    97107
    98 /* BEAU: We need a .formtext substitute...something like a label tag but not bold! */
     108/* BEAU: We need a .formtext substitute...something like a label tag but not bold! Maybe use "form p { }"? */
     109
     110
    99111/*_____________________ COMMANDS ____________________*/
     112
     113/* Should this be an ID??? */
    100114#commandbox
    101115{
  • trunk/lib/Auth_SQL.inc.php

    r24 r25  
    4141        'encryption_type' => AUTH_ENCRYPT_MD5,
    4242
    43         // The URL the user will be directed if unsuccessfully calling requireLogin.
     43        // The URL to the login script.
    4444        'login_url' => '/',
    4545
     
    303303            SELECT *, " . $this->_params['db_primary_key'] . " AS user_id
    304304            FROM " . $this->_params['db_table'] . "
    305             WHERE BINARY " . $this->_params['db_username_column'] . " = '" . addslashes($username) . "'
     305            WHERE " . $this->_params['db_username_column'] . " = '" . addslashes($username) . "'
    306306            AND BINARY userpass = '" . addslashes($this->encryptPassword($password)) . "'
    307307        ");
  • trunk/lib/CSS.inc.php

    r24 r25  
    88 * @author  Quinn Comendant <quinn@strangecode.com>
    99 * @version 1.1
     10 * TODO: set different css files attached to an app with /css.php?app=name
     11 * TODO:
    1012 */
    1113class CSS {
  • trunk/lib/Email.inc.php

    r24 r25  
    7373        . '(?:|\s*|\s+\([^,@]+\)\s*))$/i'));                            // FALSE ensure there is no ending >
    7474
    75         $this->setParam($params);
     75        if (isset($params)) {
     76            $this->setParam($params);
     77        }
    7678    }
    7779
  • trunk/lib/Nav.inc.php

    r24 r25  
    7272    function setFeature($features=null, $page_id=null)
    7373    {
    74         if (!isset($page_id)) {
    75             $page_id = sizeof($this->pages) - 1;
    76         } else if ($page_id < 0 && is_numeric($page_id)) {
    77             $page_id = sizeof($this->pages) + intval($page_id);
    78         }
    79        
    80         if (isset($features) && is_array($features)) {
     74        $page_id = $this->_calculatePageID($page_id);
     75       
     76        if (isset($features) && is_array($features) && isset($this->pages[sizeof($this->pages)-1]['features']) && is_array($this->pages[sizeof($this->pages)-1]['features'])) {
    8177            // Set features for specified page.
    8278            $this->pages[sizeof($this->pages)-1]['features'] = array_merge($this->pages[sizeof($this->pages)-1]['features'], $features);
    83             // Store "current page" features.
    84             $this->pages[$page_id]['features'] = array_merge($this->pages[$page_id]['features'], $features);
     79            // TODO: Store "current page" features.
     80//             $this->pages[$page_id]['features'] = array_merge($this->pages[$page_id]['features'], $features);
    8581        }
    8682    }
     
    111107    function getFeature($feature, $page_id=null, $default=null)
    112108    {
    113         if (!isset($page_id)) {
    114             $page_id = sizeof($this->pages) - 1;
    115         } else if ($page_id < 0 && is_numeric($page_id)) {
    116             $page_id = sizeof($this->pages) + intval($page_id);
    117         }
     109        $page_id = $this->_calculatePageID($page_id);
    118110       
    119111        if (isset($this->pages[$page_id]['features'][$feature])) {
     
    141133    function getTitle($page_id=null)
    142134    {
    143         if (!isset($page_id)) {
    144             $page_id = sizeof($this->pages) - 1;
    145         } else if ($page_id < 0 && is_numeric($page_id)) {
    146             $page_id = sizeof($this->pages) + intval($page_id);
    147         }
     135        $page_id = $this->_calculatePageID($page_id);
    148136       
    149137        if ($this->getFeature('title', $page_id)) {
    150             return oTxt($this->pages[$page_id]['title']);
     138            return oTxt($this->pages[$page_id]['title'], true);
    151139        } else {
    152140            return false;
     
    174162    function getPath($page_id=null)
    175163    {
    176         if (!isset($page_id)) {
    177             $page_id = sizeof($this->pages) - 1;
    178         } else if ($page_id < 0 && is_numeric($page_id)) {
    179             $page_id = sizeof($this->pages) + intval($page_id);
    180         }
     164        $page_id = $this->_calculatePageID($page_id);
    181165       
    182166        if ($this->getFeature('path', $page_id)) {
     
    217201    function getBreadcrumbs($page_id=null)
    218202    {
    219         if (!isset($page_id)) {
    220             $page_id = sizeof($this->pages) - 1;
    221         } else if ($page_id < 0 && is_numeric($page_id)) {
    222             $page_id = sizeof($this->pages) + intval($page_id);
    223         }
     203        $page_id = $this->_calculatePageID($page_id);
    224204       
    225205        if ($this->getFeature('breadcrumbs')) {
     
    293273    }
    294274   
     275    /**
     276     * Returns the ID of the current page, or the adjusted ID for a given page ID.
     277     *
     278     * @access  private
     279     * @return  string  The value of the current page id.
     280     */
     281    function _calculatePageID($page_id=null)
     282    {
     283        if (!isset($page_id)) {
     284            return sizeof($this->pages) - 1;
     285        } else if ($page_id < 0 && is_numeric($page_id)) {
     286            return sizeof($this->pages) + intval($page_id);
     287        } else {
     288            return $page_id;
     289        }
     290    }
     291   
    295292}
    296293// End of class.
  • trunk/lib/Upload.inc.php

    r24 r25  
    3939    // Array of file name extensions and corresponding mime-types.
    4040    var $mime_extension_map = array(
    41         'Z'       => 'application/x-compress',
    42         'ai'      => 'application/postscript',
    43         'aif'     => 'audio/x-aiff',
    44         'aifc'    => 'audio/x-aiff',
    45         'aiff'    => 'audio/x-aiff',
    46         'asc'     => 'text/plain',
    47         'asf'     => 'video/x-ms-asf',
    48         'asx'     => 'video/x-ms-asf',
    49         'au'      => 'audio/basic',
    50         'avi'     => 'video/x-msvideo',
    51         'bcpio'   => 'application/x-bcpio',
     41        'ez'      => 'application/andrew-inset',
     42        'hqx'     => 'application/mac-binhex40',
     43        'cpt'     => 'application/mac-compactpro',
     44        'doc'     => 'application/msword',
    5245        'bin'     => 'application/octet-stream',
    53         'bmp'     => 'image/bmp',
    54         'cdf'     => 'application/x-netcdf',
    5546        'class'   => 'application/octet-stream',
    56         'cpio'    => 'application/x-cpio',
    57         'cpt'     => 'application/mac-compactpro',
    58         'csh'     => 'application/x-csh',
    59         'css'     => 'text/css',
    60         'dcr'     => 'application/x-director',
    61         'diff'    => 'text/diff',
    62         'dir'     => 'application/x-director',
    6347        'dll'     => 'application/octet-stream',
    6448        'dms'     => 'application/octet-stream',
    65         'doc'     => 'application/msword',
     49        'exe'     => 'application/octet-stream',
     50        'lha'     => 'application/octet-stream',
     51        'lzh'     => 'application/octet-stream',
     52        'so'      => 'application/octet-stream',
     53        'oda'     => 'application/oda',
     54        'pdf'     => 'application/pdf',
     55        'ps'      => 'application/postscript',
     56        'eps'     => 'application/postscript',
     57        'ai'      => 'application/postscript',
     58        'smi'     => 'application/smil',
     59        'smil'    => 'application/smil',
     60        'mif'     => 'application/vnd.mif',
     61        'xls'     => 'application/vnd.ms-excel',
     62        'ppt'     => 'application/vnd.ms-powerpoint',
     63        'stc'     => 'application/vnd.sun.xml.calc.template',
     64        'sxc'     => 'application/vnd.sun.xml.calc',
     65        'std'     => 'application/vnd.sun.xml.draw.template',
     66        'sxd'     => 'application/vnd.sun.xml.draw',
     67        'sti'     => 'application/vnd.sun.xml.impress.template',
     68        'sxi'     => 'application/vnd.sun.xml.impress',
     69        'sxm'     => 'application/vnd.sun.xml.math',
     70        'sxg'     => 'application/vnd.sun.xml.writer.global',
     71        'stw'     => 'application/vnd.sun.xml.writer.template',
     72        'sxw'     => 'application/vnd.sun.xml.writer',
     73        'vsd'     => 'application/vnd.visio',
     74        'wbxml'   => 'application/vnd.wap.wbxml',
     75        'wmlc'    => 'application/vnd.wap.wmlc',
     76        'wmlsc'   => 'application/vnd.wap.wmlscriptc',
     77        'bcpio'   => 'application/x-bcpio',
     78        'vcd'     => 'application/x-cdlink',
     79        'pgn'     => 'application/x-chess-pgn',
     80        'Z'       => 'application/x-compress',
     81        'cpio'    => 'application/x-cpio',
     82        'csh'     => 'application/x-csh',
     83        'dcr'     => 'application/x-director',
     84        'dir'     => 'application/x-director',
     85        'dxr'     => 'application/x-director',
    6686        'dvi'     => 'application/x-dvi',
    67         'dxr'     => 'application/x-director',
    68         'eps'     => 'application/postscript',
    69         'etx'     => 'text/x-setext',
    70         'exe'     => 'application/octet-stream',
    71         'ez'      => 'application/andrew-inset',
    72         'gif'     => 'image/gif',
     87        'spl'     => 'application/x-futuresplash',
    7388        'gtar'    => 'application/x-gtar',
     89        'tgz'     => 'application/x-gtar',
    7490        'gz'      => 'application/x-gzip',
    7591        'hdf'     => 'application/x-hdf',
    76         'hqx'     => 'application/mac-binhex40',
    77         'htm'     => 'text/html',
    78         'html'    => 'text/html',
    79         'ice'     => 'x-conference/x-cooltalk',
    80         'ics'     => 'text/calendar',
    81         'ief'     => 'image/ief',
    82         'ifb'     => 'text/calendar',
    83         'iges'    => 'model/iges',
    84         'igs'     => 'model/iges',
    85         'jpe'     => 'image/jpeg',
    86         'jpeg'    => 'image/jpeg',
    87         'jpg'     => 'image/jpeg',
     92        'php3'    => 'application/x-httpd-php3',
     93        'php'     => 'application/x-httpd-php',
    8894        'js'      => 'application/x-javascript',
    89         'kar'     => 'audio/midi',
    90         'latex'   => 'application/x-latex',
    91         'lha'     => 'application/octet-stream',
    92         'log'     => 'text/plain',
    93         'lzh'     => 'application/octet-stream',
    94         'm3u'     => 'audio/x-mpegurl',
    95         'man'     => 'application/x-troff-man',
    96         'me'      => 'application/x-troff-me',
    97         'mesh'    => 'model/mesh',
    98         'mid'     => 'audio/midi',
    99         'midi'    => 'audio/midi',
    100         'mif'     => 'application/vnd.mif',
    101         'mov'     => 'video/quicktime',
    102         'movie'   => 'video/x-sgi-movie',
    103         'mp2'     => 'audio/mpeg',
    104         'mp3'     => 'audio/mpeg',
    105         'mpe'     => 'video/mpeg',
    106         'mpeg'    => 'video/mpeg',
    107         'mpg'     => 'video/mpeg',
    108         'mpga'    => 'audio/mpeg',
    109         'ms'      => 'application/x-troff-ms',
    110         'msh'     => 'model/mesh',
    111         'mxu'     => 'video/vnd.mpegurl',
    112         'nc'      => 'application/x-netcdf',
    113         'oda'     => 'application/oda',
    114         'patch'   => 'text/diff',
    115         'pbm'     => 'image/x-portable-bitmap',
    116         'pdb'     => 'chemical/x-pdb',
    117         'pdf'     => 'application/pdf',
    118         'pgm'     => 'image/x-portable-graymap',
    119         'pgn'     => 'application/x-chess-pgn',
    120         'php'     => 'application/x-httpd-php',
    121         'php3'    => 'application/x-httpd-php3',
    122         'pl'      => 'application/x-perl',
    123         'pm'      => 'application/x-perl',
    124         'png'     => 'image/png',
    125         'pnm'     => 'image/x-portable-anymap',
    126         'po'      => 'text/plain',
    127         'ppm'     => 'image/x-portable-pixmap',
    128         'ppt'     => 'application/vnd.ms-powerpoint',
    129         'ps'      => 'application/postscript',
    130         'qt'      => 'video/quicktime',
    131         'ra'      => 'audio/x-realaudio',
    132         'ram'     => 'audio/x-pn-realaudio',
    133         'ras'     => 'image/x-cmu-raster',
    134         'rgb'     => 'image/x-rgb',
    135         'rm'      => 'audio/x-pn-realaudio',
    136         'roff'    => 'application/x-troff',
    137         'rpm'     => 'audio/x-pn-realaudio-plugin',
    138         'rtf'     => 'text/rtf',
    139         'rtx'     => 'text/richtext',
    140         'sgm'     => 'text/sgml',
    141         'sgml'    => 'text/sgml',
    142         'sh'      => 'application/x-sh',
    143         'shar'    => 'application/x-shar',
    144         'shtml'   => 'text/html',
    145         'silo'    => 'model/mesh',
    146         'sit'     => 'application/x-stuffit',
    14795        'skd'     => 'application/x-koan',
    14896        'skm'     => 'application/x-koan',
    14997        'skp'     => 'application/x-koan',
    15098        'skt'     => 'application/x-koan',
    151         'smi'     => 'application/smil',
    152         'smil'    => 'application/smil',
    153         'snd'     => 'audio/basic',
    154         'so'      => 'application/octet-stream',
    155         'spl'     => 'application/x-futuresplash',
    156         'src'     => 'application/x-wais-source',
    157         'stc'     => 'application/vnd.sun.xml.calc.template',
    158         'std'     => 'application/vnd.sun.xml.draw.template',
    159         'sti'     => 'application/vnd.sun.xml.impress.template',
    160         'stw'     => 'application/vnd.sun.xml.writer.template',
     99        'latex'   => 'application/x-latex',
     100        'wmd'     => 'application/x-ms-wmd',
     101        'wmz'     => 'application/x-ms-wmz',
     102        'cdf'     => 'application/x-netcdf',
     103        'nc'      => 'application/x-netcdf',
     104        'pl'      => 'application/x-perl',
     105        'pm'      => 'application/x-perl',
     106        'shar'    => 'application/x-shar',
     107        'swf'     => 'application/x-shockwave-flash',
     108        'sh'      => 'application/x-sh',
     109        'sit'     => 'application/x-stuffit',
    161110        'sv4cpio' => 'application/x-sv4cpio',
    162111        'sv4crc'  => 'application/x-sv4crc',
    163         'swf'     => 'application/x-shockwave-flash',
    164         'sxc'     => 'application/vnd.sun.xml.calc',
    165         'sxd'     => 'application/vnd.sun.xml.draw',
    166         'sxg'     => 'application/vnd.sun.xml.writer.global',
    167         'sxi'     => 'application/vnd.sun.xml.impress',
    168         'sxm'     => 'application/vnd.sun.xml.math',
    169         'sxw'     => 'application/vnd.sun.xml.writer',
    170         't'       => 'application/x-troff',
    171112        'tar'     => 'application/x-tar',
    172113        'tcl'     => 'application/x-tcl',
    173         'tex'     => 'application/x-tex',
    174114        'texi'    => 'application/x-texinfo',
    175115        'texinfo' => 'application/x-texinfo',
    176         'tgz'     => 'application/x-gtar',
     116        'tex'     => 'application/x-tex',
     117        'man'     => 'application/x-troff-man',
     118        'me'      => 'application/x-troff-me',
     119        'ms'      => 'application/x-troff-ms',
     120        'roff'    => 'application/x-troff',
     121        't'       => 'application/x-troff',
     122        'tr'      => 'application/x-troff',
     123        'ustar'   => 'application/x-ustar',
     124        'src'     => 'application/x-wais-source',
     125        'xhtml'   => 'application/xhtml+xml',
     126        'xht'     => 'application/xhtml+xml',
     127        'xml'     => 'application/xml',
     128        'zip'     => 'application/zip',
     129        'au'      => 'audio/basic',
     130        'snd'     => 'audio/basic',
     131        'kar'     => 'audio/midi',
     132        'mid'     => 'audio/midi',
     133        'midi'    => 'audio/midi',
     134        'mp3'     => 'audio/mpeg',
     135        'mp2'     => 'audio/mpeg',
     136        'mpga'    => 'audio/mpeg',
     137        'aiff'    => 'audio/x-aiff',
     138        'aif'     => 'audio/x-aiff',
     139        'aifc'    => 'audio/x-aiff',
     140        'm3u'     => 'audio/x-mpegurl',
     141        'wax'     => 'audio/x-ms-wax',
     142        'wma'     => 'audio/x-ms-wma',
     143        'rpm'     => 'audio/x-pn-realaudio-plugin',
     144        'ram'     => 'audio/x-pn-realaudio',
     145        'rm'      => 'audio/x-pn-realaudio',
     146        'ra'      => 'audio/x-realaudio',
     147        'wav'     => 'audio/x-wav',
     148        'pdb'     => 'chemical/x-pdb',
     149        'xyz'     => 'chemical/x-xyz',
     150        'bmp'     => 'image/bmp',
     151        'gif'     => 'image/gif',
     152        'ief'     => 'image/ief',
     153        'jpg'     => 'image/jpeg',
     154        'jpe'     => 'image/jpeg',
     155        'jpeg'    => 'image/jpeg',
     156        'png'     => 'image/png',
    177157        'tif'     => 'image/tiff',
    178158        'tiff'    => 'image/tiff',
    179         'tr'      => 'application/x-troff',
    180         'tsv'     => 'text/tab-separated-values',
    181         'txt'     => 'text/plain',
    182         'ustar'   => 'application/x-ustar',
    183         'vcd'     => 'application/x-cdlink',
    184         'vcf'     => 'text/x-vcard',
     159        'wbmp'    => 'image/vnd.wap.wbmp',
     160        'ras'     => 'image/x-cmu-raster',
     161        'pnm'     => 'image/x-portable-anymap',
     162        'pbm'     => 'image/x-portable-bitmap',
     163        'pgm'     => 'image/x-portable-graymap',
     164        'ppm'     => 'image/x-portable-pixmap',
     165        'rgb'     => 'image/x-rgb',
     166        'xbm'     => 'image/x-xbitmap',
     167        'xpm'     => 'image/x-xpixmap',
     168        'xwd'     => 'image/x-xwindowdump',
     169        'iges'    => 'model/iges',
     170        'igs'     => 'model/iges',
     171        'mesh'    => 'model/mesh',
     172        'msh'     => 'model/mesh',
     173        'silo'    => 'model/mesh',
     174        'vrml'    => 'model/vrml',
     175        'wrl'     => 'model/vrml',
     176        'ics'     => 'text/calendar',
     177        'ifb'     => 'text/calendar',
    185178        'vcs'     => 'text/calendar',
    186179        'vfb'     => 'text/calendar',
    187         'vrml'    => 'model/vrml',
    188         'vsd'     => 'application/vnd.visio',
    189         'wav'     => 'audio/x-wav',
    190         'wax'     => 'audio/x-ms-wax',
    191         'wbmp'    => 'image/vnd.wap.wbmp',
    192         'wbxml'   => 'application/vnd.wap.wbxml',
     180        'css'     => 'text/css',
     181        'diff'    => 'text/diff',
     182        'patch'   => 'text/diff',
     183        'html'    => 'text/html',
     184        'htm'     => 'text/html',
     185        'shtml'   => 'text/html',
     186        'txt'     => 'text/plain',
     187        'asc'     => 'text/plain',
     188        'log'     => 'text/plain',
     189        'po'      => 'text/plain',
     190        'rtx'     => 'text/richtext',
     191        'rtf'     => 'text/rtf',
     192        'sgm'     => 'text/sgml',
     193        'sgml'    => 'text/sgml',
     194        'tsv'     => 'text/tab-separated-values',
     195        'wmls'    => 'text/vnd.wap.wmlscript',
     196        'wml'     => 'text/vnd.wap.wml',
     197        'etx'     => 'text/x-setext',
     198        'vcf'     => 'text/x-vcard',
     199        'xsl'     => 'text/xml',
     200        'mpeg'    => 'video/mpeg',
     201        'mpe'     => 'video/mpeg',
     202        'mpg'     => 'video/mpeg',
     203        'mov'     => 'video/quicktime',
     204        'qt'      => 'video/quicktime',
     205        'mxu'     => 'video/vnd.mpegurl',
     206        'asf'     => 'video/x-ms-asf',
     207        'asx'     => 'video/x-ms-asf',
     208        'wmv'     => 'video/x-ms-wmv',
    193209        'wm'      => 'video/x-ms-wm',
    194         'wma'     => 'audio/x-ms-wma',
    195         'wmd'     => 'application/x-ms-wmd',
    196         'wml'     => 'text/vnd.wap.wml',
    197         'wmlc'    => 'application/vnd.wap.wmlc',
    198         'wmls'    => 'text/vnd.wap.wmlscript',
    199         'wmlsc'   => 'application/vnd.wap.wmlscriptc',
    200         'wmv'     => 'video/x-ms-wmv',
    201210        'wmx'     => 'video/x-ms-wmx',
    202         'wmz'     => 'application/x-ms-wmz',
    203         'wrl'     => 'model/vrml',
    204211        'wvx'     => 'video/x-ms-wvx',
    205         'xbm'     => 'image/x-xbitmap',
    206         'xht'     => 'application/xhtml+xml',
    207         'xhtml'   => 'application/xhtml+xml',
    208         'xls'     => 'application/vnd.ms-excel',
    209         'xml'     => 'application/xml',
    210         'xpm'     => 'image/x-xpixmap',
    211         'xsl'     => 'text/xml',
    212         'xwd'     => 'image/x-xwindowdump',
    213         'xyz'     => 'chemical/x-xyz',
    214         'zip'     => 'application/zip'
     212        'avi'     => 'video/x-msvideo',
     213        'movie'   => 'video/x-sgi-movie',
     214        'ice'     => 'x-conference/x-cooltalk',
    215215    );
    216216   
  • trunk/services/admins.php

    r24 r25  
    297297        'modified_datetime' => '0000-00-00 00:00:00',
    298298        'new_op' => 'update',
     299        'old_username' => $frm['username'],
    299300        'submit_buttons' => array(
    300301            'submit' => _("Save changes"),
  • trunk/tests/FormValidatorTest.php

    r24 r25  
    2323        require dirname(__FILE__) . '/_config.inc.php';
    2424        require_once '../lib/FormValidator.inc.php';
    25         $this->FormValidator =& new FormValidator(PARAM);
     25        $this->FormValidator =& new FormValidator();
    2626    }
    2727
Note: See TracChangeset for help on using the changeset viewer.