| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 //Custom MOStlyCE code 3 require('../../../../../../configuration.php'); 4 require ($mosConfig_absolute_path.'mambots/editors/mostlyce/jscripts/tiny_mce/auth_check.php'); 5 $result = externalCallCheck($mosConfig_absolute_path, $mosConfig_secret); 6 if (!$result) { 7 die('Direct Access to this location is not allowed.'); 8 } 9 require ($mosConfig_absolute_path.'/mambots/editors/mostlyce/jscripts/tiny_mce/mostlyce_config.php'); 10 //If the Image Manager is not enabled stop them here 11 if ($editor_plugin_img_mgr!=='true') { 12 die('Direct Access to this location is not allowed.'); 13 } 14 //End custom MOStlyCE code 15 ?> 16 <?php 17 18 /** 19 * The frame that contains the image to be edited. 20 * @author $Author$ 21 * @version $Id$ 22 * @package ImageManager 23 */ 24 25 require_once ('config.inc.php'); 26 require_once ('Classes/ImageManager.php'); 27 require_once ('Classes/ImageEditor.php'); 28 29 $manager = new ImageManager($IMConfig); 30 $editor = new ImageEditor($manager); 31 $imageInfo = $editor->processImage(); 32 33 ?> 34 35 <html> 36 <head> 37 <title></title> 38 <link href="assets/editorFrame.css" rel="stylesheet" type="text/css" /> 39 <script type="text/javascript" src="assets/wz_jsgraphics.js"></script> 40 <script type="text/javascript" src="assets/EditorContent.js"></script> 41 <script type="text/javascript"> 42 //if(window.top) 43 // I18N = window.top.I18N; 44 45 function i18n(str) { 46 // if(I18N) 47 // return (I18N[str] || str); 48 // else 49 return str; 50 }; 51 52 var mode = "<?php echo $editor->getAction(); ?>" //crop, scale, measure 53 54 var currentImageFile = "<?php if(count($imageInfo)>0) echo rawurlencode($imageInfo['file']); ?>"; 55 56 <?php if ($editor->isFileSaved() == 1) { ?> 57 alert('File saved.'); 58 <?php } else if ($editor->isFileSaved() == -1) { ?> 59 alert('File was not saved.'); 60 <?php } ?> 61 62 </script> 63 <script type="text/javascript" src="assets/editorFrame.js"></script> 64 </head> 65 66 <body> 67 <div id="status"></div> 68 <div id="ant" class="selection" style="visibility:hidden"><img src="img/spacer.gif" width="0" height="0" border="0" alt="" id="cropContent"></div> 69 <table height="100%" width="100%"> 70 <tr> 71 <td> 72 <?php if(count($imageInfo) > 0 && is_file($imageInfo['fullpath'])) { ?> 73 <span id="imgCanvas" class="crop"><img src="<?php echo $imageInfo['src']; ?>" <?php echo $imageInfo['dimensions']; ?> alt="" id="theImage" name="theImage"></span> 74 <?php } else { ?> 75 <span class="error">No Image Available(<?php echo $imageInfo['fullpath']; ?></span> 76 <?php } ?> 77 </td> 78 </tr> 79 </table> 80 </body> 81 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed May 23 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |