Changeset 854:893c8fc07a74 for inc/admin
- Timestamp:
- 08/01/12 10:59:38 (13 years ago)
- Branch:
- sexy
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.dc.page.php
r852 r854 631 631 } 632 632 633 public static function jsCandyUpload($params=array(),$base_url=null)634 {635 if (!$base_url) {636 $base_url = path::clean(dirname(preg_replace('/(\?.*$)?/','',$_SERVER['REQUEST_URI']))).'/';637 }638 639 $params = array_merge($params,array(640 'sess_id='.session_id(),641 'sess_uid='.$_SESSION['sess_browser_uid'],642 'xd_check='.$GLOBALS['core']->getNonce()643 ));644 645 return646 '<link rel="stylesheet" type="text/css" href="style/candyUpload/style.css" />'."\n".647 self::jsLoad('js/jquery/jquery.candyUpload.js').648 649 '<script type="text/javascript">'."\n".650 "//<![CDATA[\n".651 "dotclear.candyUpload = {};\n".652 self::jsVar('dotclear.msg.activate_enhanced_uploader',__('Activate enhanced uploader')).653 self::jsVar('dotclear.msg.disable_enhanced_uploader',__('Disable enhanced uploader')).654 self::jsVar('$._candyUpload.prototype.locales.file_uploaded',__('File successfully uploaded.')).655 self::jsVar('$._candyUpload.prototype.locales.max_file_size',__('Maximum file size allowed:')).656 self::jsVar('$._candyUpload.prototype.locales.limit_exceeded',__('Limit exceeded.')).657 self::jsVar('$._candyUpload.prototype.locales.size_limit_exceeded',__('File size exceeds allowed limit.')).658 self::jsVar('$._candyUpload.prototype.locales.canceled',__('Canceled.')).659 self::jsVar('$._candyUpload.prototype.locales.http_error',__('HTTP Error:')).660 self::jsVar('$._candyUpload.prototype.locales.error',__('Error:')).661 self::jsVar('$._candyUpload.prototype.locales.choose_file',__('Choose file')).662 self::jsVar('$._candyUpload.prototype.locales.choose_files',__('Choose files')).663 self::jsVar('$._candyUpload.prototype.locales.cancel',__('Cancel')).664 self::jsVar('$._candyUpload.prototype.locales.clean',__('Clean')).665 self::jsVar('$._candyUpload.prototype.locales.upload',__('Upload')).666 self::jsVar('$._candyUpload.prototype.locales.no_file_in_queue',__('No file in queue.')).667 self::jsVar('$._candyUpload.prototype.locales.file_in_queue',__('1 file in queue.')).668 self::jsVar('$._candyUpload.prototype.locales.files_in_queue',__('%d files in queue.')).669 self::jsVar('$._candyUpload.prototype.locales.queue_error',__('Queue error:')).670 self::jsVar('dotclear.candyUpload.base_url',$base_url).671 self::jsVar('dotclear.candyUpload.movie_url',$base_url.'index.php?pf=swfupload.swf').672 self::jsVar('dotclear.candyUpload.params',implode('&',$params)).673 "\n//]]>\n".674 "</script>\n";675 }676 677 633 public static function jsToolMan() 678 634 {
Note: See TracChangeset
for help on using the changeset viewer.