//(commented the default codes), changed to: $dir_to_make = "wp-content/uploads/classipress"; $image_baseurl = get_option('home')."/wp-content/uploads/classipress";
<?php $delete_file = strip_tags($_GET['delete']); if ( $delete_file != "" ) { $delete_file = "../wp-content/uploads/classipress/".$delete_file; unlink($delete_file); echo "<div class='del_image'>" . __('The image has been deleted','cp') . "</div>"; } ?> <div class="classipress_images"> <?php $image_url = get_bloginfo('template_url')."/includes/img_resize.php?width=100&height=100&url="; $image_url2 = get_bloginfo('template_url'); if ($handle = opendir('../wp-content/uploads/classipress')) { // List all the files while (false !== ($file = readdir($handle))) { if ( $file == "." || $file == ".." ) { } else { $size = filesize("../wp-content/uploads/classipress/".$file); $size = $size / 1024; $size = round($size)."Kb"; ?>
There are currently 2 users browsing this thread. (0 members and 2 guests)