Lines Matching refs:_msg

118       if ( ! isset( $this->logFileHandle ) ) $this->_msg( 'er_logFile' );
148 # * false -> something wrong; using _msg to display what's wrong
195 if ( ! $this->pageName = $ID ) return $this->_msg('er_id');
199 if ( auth_quickaclcheck($ID) < AUTH_EDIT ) return $this->_msg('er_acl_edit');
201 if ( auth_quickaclcheck($ID) < AUTH_CREATE ) return $this->_msg('er_acl_create');
205 if ( ! $this->_checkUploadFile() ) return $this->_msg('er_checkUploadResult');
208 if ( ! $this->getConf( 'parserXslFile' ) ) return $this->_msg('er_xslFile_notset');
210 if ( ! file_exists($this->xslFile) ) return $this->_msg('er_xslFile_exists');
211 if ( ! is_file($this->xslFile) ) return $this->_msg('er_xslFile_isfile');
214 if ( ! class_exists( "XSLTProcessor" ) ) return $this->_msg('er_class_xsltProcessor');
215 if ( ! class_exists( "ZipArchive" ) ) return $this->_msg('er_class_zipArchive');
216 if ( ! class_exists( "DOMDocument" ) ) return $this->_msg('er_class_domDocument');
224 if ( ! ($this->XSL->load( $this->xslFile ) ) ) return $this->_msg('er_loadXsl');
226 if ( ! $this->_set_xsltProcessor() ) return $this->_msg('er_xsltProc');
228 if ( ! $this->_unzip( $this->xmlFile ) ) return $this->_msg('er_file_unzip');
230 if ( ! $this->XML->load($this->uploadDir.'/'.$this->xmlFile) ) return $this->_msg('er_loadXml');
231 if ( ! $this->racine = $this->XML->getElementsByTagName('document-content')->item(0) ) return $this->_msg('er_invalidRoot');
247 if ( ! $tmp = html_entity_decode($this->XSLT->transformToDoc( $this->XML )->saveHTML(), ENT_COMPAT, 'UTF-8') ) return $this->_msg('er_transform');
255 if ( ! $this->_apply_result() ) return $this->_msg('er_apply');
260 function _msg( $message, $type=null, $force=false ) {
261 ### _msg : display message using the debugLvl value
328 # * false -> something wrong; using _msg to display what's wrong
330 if ( ! $_FILES['userFile'] ) return $this->_msg('er_file_miss');
332 if ( $_FILES['userFile']['error'] > 0 ) return $this->_msg( array( 'er_file_upload', $_FILES['userFile']['error'] ) );
334 if ( $this->getConf( 'parserMimeTypeAuthorized' ) != "" && strpos( $this->getConf( 'parserMimeTypeAuthorized' ), $_FILES['userFile']['type'] ) === false ) return $this->_msg( array( 'er_file_format', $_FILES['userFile']['type'] ) );
339 if ( ! mkdir( $this->uploadDir, 0777, true ) ) return $this->_msg( 'er_file_tmpDir' );
345 if ( ! move_uploaded_file( $_FILES['userFile']['tmp_name'], $this->userFile ) ) return $this->_msg('er_file_getFromDownload');
394 if ( file_exists( $this->odtFile ) ) if ( ! @unlink( $this->odtFile ) ) $this->_msg( array( 'er_pg_file', $this->odtFile ) );
395 if ( file_exists( $this->userFile ) ) if ( ! @unlink( $this->userFile ) ) $this->_msg( array( 'er_pg_file', $this->userFile ) );
397 if ( $this->file_extract ) foreach ($this->file_extract as $file) if ( file_exists( $file ) ) if ( ! @unlink( $file ) ) $this->_msg( array( 'er_pg_file', $file ) );
399 if ( $this->file_import ) foreach ( $this->file_import as $file ) if ( file_exists( $this->uploadDir.'/'.$this->pictpath.'/'.$file ) ) if ( ! @unlink( $this->uploadDir.'/'.$this->pictpath.'/'.$file ) ) $this->_msg( array( 'er_pg_file', $this->uploadDir.'/'.$this->pictpath.'/'.$file ) );
401 if ( file_exists( $this->uploadDir.'/'.$this->pictpath) ) if ( ! @rmdir( $this->uploadDir.'/'.$this->pictpath ) ) $this->_msg( array( 'er_pg_dir', $this->uploadDir.'/'.$this->pictpath ) );
403 if ( file_exists( $this->uploadDir ) ) if ( ! @rmdir( $this->uploadDir ) ) $this->_msg( array( 'er_pg_dir', $this->uploadDir ) );
412 # * false -> something wrong; using _msg to display what's wrong
413 # _msg info report ( debugLvl >= 2 ) display message about active plugin
417 if ( ! $this->XSLT->importStylesheet( $this->XSL ) ) return $this->_msg('er_xslt_invalid');
419 if ( ! $this->XSLT->setParameter( '', $param, '1' ) ) return $this->_msg( array( 'inf_xslt_param', $param ), -1 );
420 // _msg info report
421 $this->_msg( array( 'ok_infoPlugin', $param ), 1 );
424 foreach ( array('subtable_message') as $lang_elt ) if ( ! $this->XSLT->setParameter( '', $lang_elt, $this->getLang('xsl_'.$lang_elt ) ) ) $this->_msg( array( 'inf_xslt_lang', $param ), 0 );
432 # * false -> something wrong; using _msg to display what's wrong
436 if ( ! page_exists($this->pageName) ) return $this->_msg('er_apply_content');
441 if ( ! ( file_exists( $destDir ) || mkdir( $destDir, 0777, true ) ) ) return $this->_msg( array( 'er_apply_dirCreate' ) );
445 if ( media_upload_finish($this->uploadDir.'/'.$this->pictpath.'/'.$pict, $destFile, $this->nsName, $mime, @file_exists($destFile), 'rename' ) != $this->nsName ) return $this->_msg( array( 'er_apply_img', $this->uploadDir.'/'.$this->pictpath.'/'.$pict ) );
450 if ( media_upload_finish($this->uploadDir.'/'.$this->userFileName, $destFile, $this->nsName, $mime, @file_exists($destFile), 'rename' ) != $this->nsName ) return $this->_msg( array( 'er_apply_file' ) );
453 $this->_msg( 'inf_acl_upload', 0, true );
464 # using _msg to display each img file wont be process successfully
469 if ( auth_quickaclcheck( $ID ) < AUTH_UPLOAD ) return $this->_msg( 'er_acl_upload' );
499 foreach ( $value as $msg ) $this->_msg( array( 'ok_img', $msg ) );
503 $this->_msg( array( 'er_img_'.$value, $key ) );
513 # * false -> something wrong; using _msg to display what's wrong
515 if ( ! $this->ZIP ) return $this->_msg('er_unzip_object');
516 if ( ! file_exists( $this->odtFile ) ) return $this->_msg('er_unzip_nofile');
517 if ( ! ( $this->ZIP->open( $this->odtFile ) === true ) ) return $this->_msg( 'er_unzip_open' );
520 if ( ! $res ) return $this->_msg( array( 'er_unzip_error', $entrie ) );
522 return $this->_msg( array( 'ok_unzip', $entrie ) );