PageRenderTime 59ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/phplist/admin/fckphplist.php

https://github.com/radicaldesigns/amp
PHP | 516 lines | 396 code | 70 blank | 50 comment | 23 complexity | 0ec77dc9f958a972c9fe5108b9089014 MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0, BSD-3-Clause, LGPL-2.0, CC-BY-SA-3.0, AGPL-1.0
  1. <?php
  2. require_once dirname(__FILE__).'/accesscheck.php';
  3. if ($_GET["action"] == "js") {
  4. ob_end_clean();
  5. $req = Sql_query("select name from {$tables["attribute"]} where type in ('textline','select') order by listorder");
  6. $attnames = ';preferences url;unsubscribe url';
  7. $attcodes = ';[PREFERENCES];[UNSUBSCRIBE]';
  8. while ($row = Sql_Fetch_Row($req)) {
  9. $attnames .= ';'.strtolower(substr($row[0],0,15));
  10. $attcodes .= ';['.strtoupper($row[0]).']';
  11. }
  12. $imgdir = getenv("DOCUMENT_ROOT").$GLOBALS["pageroot"].'/'.FCKIMAGES_DIR.'/';
  13. $enable_image_upload = is_dir($imgdir) && is_writeable ($imgdir) ? 'true':'false';
  14. $smileypath = $_SERVER["DOCUMENT_ROOT"].$GLOBALS["pageroot"].'/images/smiley';
  15. $smileyextensions = array('gif');
  16. $smileys = '';
  17. if ($dir = opendir($smileypath)) {
  18. while (false !== ($file = readdir($dir)))
  19. {
  20. list($fname,$ext) = explode(".",$file);
  21. if (in_array($ext,$smileyextensions)) {
  22. $smileys .= '"'.$file.'",';
  23. }
  24. }
  25. }
  26. $smileys = substr($smileys,0,-1);
  27. ?>
  28. oTB_Items.Attribute = new TBCombo( "Attributes" , "doAttribute(this)" , 'Attribute' , '<?php echo $attnames?>', '<?=$attcodes?>') ;
  29. function doAttribute(combo)
  30. {
  31. if (combo.value != null && combo.value != "")
  32. insertHtml(combo.value);
  33. SetFocus();
  34. }
  35. config.BasePath = document.location.protocol + '//' + document.location.host +
  36. document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1) ;
  37. config.EditorAreaCSS = config.BasePath + 'css/fck_editorarea.css' ;
  38. config.BaseUrl = document.location.protocol + '//' + document.location.host + '/' ;
  39. config.EnableXHTML = false ;
  40. config.StartupShowBorders = false ;
  41. config.StartupShowDetails = false ;
  42. config.ForcePasteAsPlainText = false ;
  43. config.AutoDetectPasteFromWord = true ;
  44. config.UseBROnCarriageReturn = true ;
  45. config.TabSpaces = 4 ;
  46. config.AutoDetectLanguage = true ;
  47. config.DefaultLanguage = "en" ;
  48. config.SpellCheckerDownloadUrl = "http://www.rochen.com/ieSpellSetup201325.exe" ;
  49. config.ToolbarImagesPath = config.BasePath + "images/toolbar/" ;
  50. config.ToolbarSets["Default"] = [
  51. ['EditSource','-','Cut','Copy','Paste','PasteText','PasteWord','-','SpellCheck','Find','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Link','RemoveLink','-','Image','Table','Rule','SpecialChar','Smiley','-','About'] ,
  52. ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','InsertOrderedList','InsertUnorderedList','-','Outdent','Indent','-','ShowTableBorders','ShowDetails','-','Zoom'] ,
  53. ['Attribute','-','FontFormat','-','Font','-','FontSize','-','TextColor','BGColor']
  54. ] ;
  55. // ['FontStyle','-','FontFormat','-','Font','-','Attribute','-','FontSize','-','TextColor','BGColor']
  56. config.StyleNames = ';Main Header;Blue Title;Centered Title' ;
  57. config.StyleValues = ';MainHeader;BlueTitle;CenteredTitle' ;
  58. config.ToolbarFontNames = ';Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
  59. config.LinkShowTargets = true ;
  60. config.LinkTargets = '_blank;_parent;_self;_top' ;
  61. config.LinkDefaultTarget = '_blank' ;
  62. config.ImageBrowser = <?php echo $enable_image_upload?> ;
  63. config.ImageBrowserURL = config.BasePath + "../?page=fckphplist&action=browseimage" ;
  64. config.ImageBrowserWindowWidth = 600 ;
  65. config.ImageBrowserWindowHeight = 480 ;
  66. config.ImageUpload = <?php echo $enable_image_upload?> ;
  67. // Page that effectivelly upload the image.
  68. config.ImageUploadURL = config.BasePath + "../?page=fckphplist&action=uploadimage" ;
  69. config.ImageUploadWindowWidth = 600 ;
  70. config.ImageUploadWindowHeight = 480 ;
  71. config.ImageUploadAllowedExtensions = ".gif .jpg .jpeg .png" ;
  72. config.LinkBrowser = false ;
  73. config.LinkBrowserURL = config.BasePath + "../?page=fckphplist&action=browsefile" ;
  74. config.LinkBrowserWindowWidth = 400 ;
  75. config.LinkBrowserWindowHeight = 250 ;
  76. config.LinkUpload = false ;
  77. config.LinkUploadURL = config.BasePath + "../?page=fckphplist&action=uploadfile" ;
  78. //config.SmileyPath = config.BasePath + "images/smiley/fun/" ;
  79. config.SmileyPath = document.location.protocol + '//' + document.location.host +'<?php echo $GLOBALS["pageroot"].'/images/smiley/'?>'
  80. config.SmileyImages = [<?php echo $smileys?>] ;
  81. config.SmileyColumns = 8 ;
  82. config.SmileyWindowWidth = 800 ;
  83. config.SmileyWindowHeight = 600 ;
  84. <?php exit;
  85. } elseif ($_GET["action"] == "browseimage") {
  86. /*
  87. * FCKeditor - The text editor for internet
  88. * Copyright (C) 2003 Frederico Caldeira Knabben
  89. *
  90. * Licensed under the terms of the GNU Lesser General Public License
  91. * (http://www.opensource.org/licenses/lgpl-license.php)
  92. *
  93. * For further information go to http://www.fredck.com/FCKeditor/
  94. * or contact fckeditor@fredck.com.
  95. *
  96. * browse.php: Browse function.
  97. *
  98. * Authors:
  99. * Frederic TYNDIUK (http://www.ftls.org/ - tyndiuk[at]ftls.org)
  100. */
  101. // Init var :
  102. $IMAGES_BASE_URL = 'http://'.$_SERVER["SERVER_NAME"].$GLOBALS["pageroot"].'/'.FCKIMAGES_DIR.'/';
  103. $IMAGES_BASE_DIR = getenv("DOCUMENT_ROOT").$GLOBALS["pageroot"].'/'.FCKIMAGES_DIR.'/';
  104. // End int var
  105. // Thanks : php dot net at phor dot net
  106. function walk_dir($path) {
  107. if ($dir = opendir($path)) {
  108. while (false !== ($file = readdir($dir)))
  109. {
  110. if ($file[0]==".") continue;
  111. if (is_dir($path."/".$file))
  112. $retval = array_merge($retval,walk_dir($path."/".$file));
  113. else if (is_file($path."/".$file))
  114. $retval[]=$path."/".$file;
  115. }
  116. closedir($dir);
  117. }
  118. return $retval;
  119. }
  120. function CheckImgExt($filename) {
  121. $img_exts = array("gif","jpg", "jpeg","png");
  122. foreach($img_exts as $this_ext) {
  123. if (preg_match("/\.$this_ext$/", $filename)) {
  124. return TRUE;
  125. }
  126. }
  127. return FALSE;
  128. }
  129. $files = array();
  130. foreach (walk_dir($IMAGES_BASE_DIR) as $file) {
  131. $file = preg_replace("#//+#", '/', $file);
  132. $IMAGES_BASE_DIR = preg_replace("#//+#", '/', $IMAGES_BASE_DIR);
  133. $file = preg_replace("#$IMAGES_BASE_DIR#", '', $file);
  134. if (CheckImgExt($file)) {
  135. $files[] = $file; //adding filenames to array
  136. }
  137. }
  138. sort($files); //sorting array
  139. // generating $html_img_lst
  140. foreach ($files as $file) {
  141. $html_img_lst .= "<a href=\"javascript:getImage('$file');\">$file</a><br>\n";
  142. }
  143. ob_end_clean();
  144. ?>
  145. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  146. <HTML>
  147. <HEAD>
  148. <TITLE>Image Browser</TITLE>
  149. <LINK rel="stylesheet" type="text/css" href="./FCKeditor/css/fck_dialog.css">
  150. <SCRIPT language="javascript">
  151. var sImagesPath = "<?php echo $IMAGES_BASE_URL; ?>";
  152. var sActiveImage = "" ;
  153. function getImage(imageName)
  154. {
  155. sActiveImage = sImagesPath + imageName ;
  156. imgPreview.src = sActiveImage ;
  157. }
  158. function ok()
  159. {
  160. window.setImage(sActiveImage) ;
  161. window.close() ;
  162. }
  163. </SCRIPT>
  164. </HEAD>
  165. <BODY bottommargin="5" leftmargin="5" topmargin="5" rightmargin="5">
  166. <TABLE cellspacing="1" cellpadding="1" border="0" width="100%" class="dlg" height="100%">
  167. <TR height="100%">
  168. <TD>
  169. <TABLE cellspacing="0" cellpadding="0" width="100%" border="0" height="100%">
  170. <TR>
  171. <TD width="45%" valign="top">
  172. <table cellpadding="0" cellspacing="0" height="100%" width="100%">
  173. <tr>
  174. <td width="100%">File : </td>
  175. </tr>
  176. <tr height="100%">
  177. <td>
  178. <DIV class="ImagePreviewArea"><?php echo $html_img_lst ?></DIV>
  179. </td>
  180. </tr>
  181. </table>
  182. </TD>
  183. <TD width="10%" >&nbsp;&nbsp;&nbsp;</TD>
  184. <TD>
  185. <table cellpadding="0" cellspacing="0" height="100%" width="100%">
  186. <tr>
  187. <td width="100%">Preview : </td>
  188. </tr>
  189. <tr>
  190. <td height="100%" align="center" valign="middle">
  191. <DIV class="ImagePreviewArea"><IMG id="imgPreview" border=1"></DIV>
  192. </td>
  193. </tr>
  194. </table>
  195. </TD>
  196. </TR>
  197. </TABLE>
  198. </TD>
  199. </TR>
  200. <TR>
  201. <TD align="center">
  202. <INPUT style="WIDTH: 80px" type="button" value="OK" onclick="ok();"> &nbsp;&nbsp;&nbsp;&nbsp;
  203. <INPUT style="WIDTH: 80px" type="button" value="Cancel" onclick="window.close();"><BR>
  204. </TD>
  205. </TR>
  206. </TABLE>
  207. </BODY>
  208. </HTML>
  209. <?php
  210. exit;
  211. } elseif ($_GET["action"] == "uploadimage") {
  212. // ob_end_clean();
  213. /*
  214. * FCKeditor - The text editor for internet
  215. * Copyright (C) 2003 Frederico Caldeira Knabben
  216. *
  217. * Licensed under the terms of the GNU Lesser General Public License
  218. * (http://www.opensource.org/licenses/lgpl-license.php)
  219. *
  220. * For further information go to http://www.fredck.com/FCKeditor/
  221. * or contact fckeditor@fredck.com.
  222. *
  223. * upload.php: Basic file upload manager for the editor. You have
  224. * to have set a directory called "userimages" in the root folder
  225. * of your web site.
  226. *
  227. * Authors:
  228. * Frederic TYNDIUK (http://www.ftls.org/ - tyndiuk[at]ftls.org)
  229. */
  230. // Init var :
  231. $UPLOAD_BASE_URL = 'http://'.$_SERVER["SERVER_NAME"].$GLOBALS["pageroot"].'/'.FCKIMAGES_DIR.'/';
  232. $UPLOAD_BASE_DIR = getenv("DOCUMENT_ROOT").$GLOBALS["pageroot"].'/'.FCKIMAGES_DIR.'/';
  233. // End int var
  234. ?>
  235. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  236. <HTML>
  237. <HEAD>
  238. <TITLE>File Uploader</TITLE>
  239. <LINK rel="stylesheet" type="text/css" href="./FCKeditor/css/fck_dialog.css">
  240. </HEAD>
  241. <BODY><form>
  242. <TABLE eight="100%" width="100%">
  243. <TR>
  244. <TD align=center valign=middle><B>
  245. Upload in progress...
  246. <font color='red'><BR><BR>
  247. <?php
  248. if (file_exists($UPLOAD_BASE_DIR.$_FILES['FCKeditor_File']['name'])) {
  249. echo "Error : File ".$_FILES['FCKeditor_File']['name']." exists, can't overwrite it...";
  250. echo '<BR><BR><INPUT type="button" value=" Cancel " onclick="window.close()">';
  251. } else {
  252. if (is_uploaded_file($_FILES['FCKeditor_File']['tmp_name'])) {
  253. $savefile = $UPLOAD_BASE_DIR.$_FILES['FCKeditor_File']['name'];
  254. if (move_uploaded_file($_FILES['FCKeditor_File']['tmp_name'], $savefile)) {
  255. chmod($savefile, 0666);
  256. ?>
  257. <SCRIPT language=javascript>window.opener.setImage('<?php echo $UPLOAD_BASE_URL.$_FILES['FCKeditor_File']['name']; ?>') ; window.close();</SCRIPT>";
  258. <?php
  259. }
  260. } else {
  261. echo "Error : ";
  262. switch($_FILES['FCKeditor_File']['error']) {
  263. case 0: //no error; possible file attack!
  264. echo "There was a problem with your upload.";
  265. break;
  266. case 1: //uploaded file exceeds the upload_max_filesize directive in php.ini
  267. echo "The file you are trying to upload is too big.";
  268. break;
  269. case 2: //uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the html form
  270. echo "The file you are trying to upload is too big.";
  271. break;
  272. case 3: //uploaded file was only partially uploaded
  273. echo "The file you are trying upload was only partially uploaded.";
  274. break;
  275. case 4: //no file was uploaded
  276. echo "You must select an image for upload.";
  277. break;
  278. default: //a default error, just in case! :)
  279. echo "There was a problem with your upload.";
  280. break;
  281. }
  282. }
  283. echo '<BR><BR><INPUT type="button" value=" Cancel " onclick="window.close()">';
  284. } ?>
  285. </font></B></TD>
  286. </TR>
  287. </TABLE>
  288. </form></BODY>
  289. </HTML>
  290. <?php
  291. //exit;
  292. } elseif ($_GET['action'] == 'js2') {
  293. ob_end_clean();
  294. header('Content-type: text/plain');
  295. $req = Sql_query(sprintf('select name from %s where type in ("textline","select") order by listorder',$GLOBALS['tables']['attribute']));
  296. $attnames = ';preferences url;unsubscribe url';
  297. $attcodes = ';[PREFERENCES];[UNSUBSCRIBE]';
  298. while ($row = Sql_Fetch_Row($req)) {
  299. $attnames .= ';'.strtolower(substr($row[0],0,15));
  300. $attcodes .= ';['.strtoupper($row[0]).']';
  301. }
  302. $imgdir = $_SERVER['DOCUMENT_ROOT'].$GLOBALS["pageroot"].'/'.FCKIMAGES_DIR.'/';
  303. $enable_image_upload = is_dir($imgdir) && is_writeable ($imgdir) ? 'true':'false';
  304. $smileypath = $_SERVER["DOCUMENT_ROOT"].$GLOBALS["pageroot"].'/images/smiley';
  305. $smileyextensions = array('gif');
  306. $smileys = '';
  307. if ($dir = opendir($smileypath)) {
  308. while (false !== ($file = readdir($dir)))
  309. {
  310. list($fname,$ext) = explode(".",$file);
  311. if (in_array($ext,$smileyextensions)) {
  312. $smileys .= '"'.$file.'",';
  313. }
  314. }
  315. }
  316. $smileys = substr($smileys,0,-1);
  317. ?>
  318. /*
  319. * FCKeditor - The text editor for internet
  320. * Copyright (C) 2003-2005 Frederico Caldeira Knabben
  321. *
  322. * Licensed under the terms of the GNU Lesser General Public License:
  323. * http://www.opensource.org/licenses/lgpl-license.php
  324. *
  325. * For further information visit:
  326. * http://www.fckeditor.net/
  327. *
  328. * File Name: fckconfig.js
  329. * Editor configuration settings.
  330. * See the documentation for more info.
  331. *
  332. * File Authors:
  333. * Frederico Caldeira Knabben (fredck@fckeditor.net)
  334. */
  335. FCKConfig.CustomConfigurationsPath = '' ;
  336. FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
  337. FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ;
  338. FCKConfig.BaseHref = '' ;
  339. FCKConfig.FullPage = false;
  340. FCKConfig.Debug = false ;
  341. FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
  342. FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
  343. // FCKConfig.Plugins.Add( 'placeholder', 'en,it' ) ;
  344. FCKConfig.AutoDetectLanguage = true ;
  345. FCKConfig.DefaultLanguage = 'en' ;
  346. FCKConfig.ContentLangDirection = 'ltr' ;
  347. FCKConfig.EnableXHTML = true ; // Unsupported: Do not change.
  348. FCKConfig.EnableSourceXHTML = true ; // Unsupported: Do not change.
  349. FCKConfig.ProcessHTMLEntities = true ;
  350. FCKConfig.IncludeLatinEntities = true ;
  351. FCKConfig.IncludeGreekEntities = true ;
  352. FCKConfig.FillEmptyBlocks = true ;
  353. FCKConfig.FormatSource = true ;
  354. FCKConfig.FormatOutput = true ;
  355. FCKConfig.FormatIndentator = ' ' ;
  356. FCKConfig.GeckoUseSPAN = true ;
  357. FCKConfig.StartupFocus = false ;
  358. FCKConfig.ForcePasteAsPlainText = false ;
  359. FCKConfig.ForceSimpleAmpersand = false ;
  360. FCKConfig.TabSpaces = 0 ;
  361. FCKConfig.ShowBorders = true ;
  362. FCKConfig.UseBROnCarriageReturn = false ;
  363. FCKConfig.ToolbarStartExpanded = true ;
  364. FCKConfig.ToolbarCanCollapse = true ;
  365. FCKConfig.IEForceVScroll = false ;
  366. FCKConfig.IgnoreEmptyParagraphValue = true ;
  367. FCKConfig.ToolbarSets["Default"] = [
  368. ['Source','DocProps','-','NewPage','Preview'],
  369. ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
  370. ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat','Link','Unlink','Anchor'],
  371. ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
  372. ['OrderedList','UnorderedList','-','Outdent','Indent'],
  373. ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
  374. ['Image','Flash','Table','Rule','Smiley','SpecialChar','UniversalKey','TextColor','BGColor'],
  375. '/',
  376. ['Style','FontFormat','FontName','FontSize'],
  377. ['About']
  378. ] ;
  379. // @@@ 'Save' taken out, gives the impression that the message is saved, but it isn't
  380. //@@@ need to add attribute selection
  381. FCKConfig.ToolbarSets["Basic"] = [
  382. ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
  383. ] ;
  384. FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','TableCell','Table','Form'] ;
  385. FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ;
  386. FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
  387. FCKConfig.FontSizes = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;
  388. FCKConfig.FontFormats = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ;
  389. FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ;
  390. FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ;
  391. FCKConfig.SpellChecker = '';//'ieSpell' ; // 'ieSpell' | 'SpellerPages'
  392. FCKConfig.IeSpellDownloadUrl = '';//'http://www.iespell.com/rel/ieSpellSetup211325.exe' ;
  393. FCKConfig.MaxUndoLevels = 15 ;
  394. FCKConfig.DisableImageHandles = false ;
  395. FCKConfig.DisableTableHandles = false ;
  396. FCKConfig.LinkDlgHideTarget = false ;
  397. FCKConfig.LinkDlgHideAdvanced = false ;
  398. FCKConfig.ImageDlgHideLink = false ;
  399. FCKConfig.ImageDlgHideAdvanced = false ;
  400. FCKConfig.FlashDlgHideAdvanced = false ;
  401. FCKConfig.LinkBrowser = false ;
  402. FCKConfig.ImageBrowser = <?=$enable_image_upload?> ;
  403. // PHP
  404. FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/phplist/connector.php'
  405. FCKConfig.ImageBrowserWindowWidth = screen.width * 0.7 ; // 70% ;
  406. FCKConfig.ImageBrowserWindowHeight = screen.height * 0.7 ; // 70% ;
  407. // @@@ disabled for now
  408. FCKConfig.FlashBrowser = false ;
  409. // PHP
  410. FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/phplist/connector.php' ;
  411. FCKConfig.FlashBrowserWindowWidth = screen.width * 0.7 ; //70% ;
  412. FCKConfig.FlashBrowserWindowHeight = screen.height * 0.7 ; //70% ;
  413. FCKConfig.LinkUpload = false ;
  414. FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/asp/upload.asp' ;
  415. // PHP // FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php' ;
  416. FCKConfig.LinkUploadAllowedExtensions = "" ; // empty for all
  417. FCKConfig.LinkUploadDeniedExtensions = ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$" ; // empty for no one
  418. FCKConfig.ImageUpload = <?php echo $enable_image_upload?> ;
  419. FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/phplist/upload.php?Type=Image' ;
  420. FCKConfig.ImagePath = document.location.protocol + '//' + document.location.host +'<?php echo $GLOBALS["pageroot"].'/'.FCKIMAGES_DIR.'/'?>'
  421. FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png)$" ; // empty for all
  422. FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one
  423. FCKConfig.FlashUpload = false ;
  424. FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/asp/upload.asp?Type=Flash' ;
  425. // PHP // FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/php/upload.php?Type=Flash' ;
  426. FCKConfig.FlashUploadAllowedExtensions = ".(swf|fla)$" ; // empty for all
  427. FCKConfig.FlashUploadDeniedExtensions = "" ; // empty for no one
  428. FCKConfig.SmileyPath = document.location.protocol + '//' + document.location.host +'<?php echo $GLOBALS["pageroot"].'/images/smiley/'?>'
  429. FCKConfig.SmileyImages = [<?php echo $smileys?>] ;
  430. FCKConfig.SmileyColumns = 8 ;
  431. FCKConfig.SmileyWindowWidth = 320 ;
  432. FCKConfig.SmileyWindowHeight = 240 ;
  433. if( window.console ) window.console.log( 'Config is loaded!' ) ; // @Packager.Compactor.RemoveLine
  434. <?
  435. exit;
  436. } elseif ($_GET["action"]) {
  437. print "Sorry, ".$_GET["action"]." has not been implemented yet";
  438. }
  439. ?>