Changeset 9273 for temp/trunk/html/test


Ignore:
Timestamp:
2006/11/28 10:41:04 (20 years ago)
Author:
uehara
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/test/uehara/tree.php

    r9262 r9273  
    7575// ¥Õ¥¡¥¤¥ëºîÀ® 
    7676case 'create': 
    77     $create_dir = ereg_replace("/$", "", $now_dir); 
    78     // ¥Õ¥¡¥¤¥ëºîÀ® 
    79     if(!sfCreateFile($create_dir."/".$_POST['create_file'], 0755)) { 
    80         // ºîÀ®¥¨¥é¡¼ 
    81         $arrErr['create'] = "¢¨ ".$_POST['create_file']."¤ÎºîÀ®¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£"; 
    82     } else { 
    83         $objPage->tpl_javascript = "alert('¥Õ¥©¥ë¥À¤òºîÀ®¤·¤Þ¤·¤¿¡£');"; 
     77    // ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 
     78    $arrErr = lfCreateErrorCheck(); 
     79    if(!is_array($arrErr)) { 
     80        $create_dir = ereg_replace("/$", "", $now_dir); 
     81        // ¥Õ¥¡¥¤¥ëºîÀ® 
     82        if(!sfCreateFile($create_dir."/".$_POST['create_file'], 0755)) { 
     83            // ºîÀ®¥¨¥é¡¼ 
     84            $arrErr['create'] = "¢¨ ".$_POST['create_file']."¤ÎºîÀ®¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£"; 
     85        } else { 
     86            $objPage->tpl_javascript = "alert('¥Õ¥©¥ë¥À¤òºîÀ®¤·¤Þ¤·¤¿¡£');"; 
     87        } 
    8488    } 
    8589    break; 
     
    128132 
    129133/*  
     134 * ´Ø¿ô̾¡§lfCreateErrorCheck() 
     135 * ÀâÌÀ¡¡¡§¥Õ¥¡¥¤¥ëºîÀ®½èÍý¥¨¥é¡¼¥Á¥§¥Ã¥¯ 
     136 */ 
     137function lfCreateErrorCheck() { 
     138    $objErr = new SC_CheckError($_POST); 
     139    $objErr->doFunc(array("ºîÀ®¥Õ¥¡¥¤¥ë", "create_file"), array("FILE_NAME_CHECK")); 
     140     
     141    return $objErr->arrErr; 
     142} 
     143 
     144/*  
    130145 * ´Ø¿ô̾¡§lfInitFile() 
    131146 * ÀâÌÀ¡¡¡§¥Õ¥¡¥¤¥ë¾ðÊó¤Î½é´ü²½ 
Note: See TracChangeset for help on using the changeset viewer.