Posted by vovanbo on Wed 17 Jun 23:08
report abuse | download | new post
- <?php
- require_once('../config.php');
- $output = ''; // Here we buffer the JavaScript code we want to send to the browser.
- $delimiter = "\n"; // for eye candy... code gets new lines
- $output .= 'var tinyMCEImageList = new Array(';
- $directory = $image_list_dir;
- $output .= $delimiter
- . '["'
- . $file
- . '", "'
- . URL_PUBLIC."$image_public_path/$file"
- . '"],';
- }
- }
- }
- $output .= $delimiter;
- }
- $output .= ');'; // Finish code: end of array definition. Now we have the JavaScript code ready!
- ?>
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.