Create chapter images on server
-
This code looks for images in CHAPTER FOLDER.
here is code and enjoy ??
<?php if(empty($page_list)) { $output_dir = UPLOAD_FOLDER.$chapter['folder']; $uploader = glob("$output_dir/*"); $last = filemtime($uploader); $filedate = time() - filemtime($last); $pubdate = date ("F j, Y, g:i A",$filedate); $i = 0; foreach ($uploader as $uploaded) { $i++; $img = basename($uploaded); $chap_id = $chapter['id']; $ser_id = $series['id']; $db->page_create($_CLEAN['title'],$i,$img,$pubdate,$_POST['story'],$i,$ser_id,$chap_id,''); $status['pass'] = __('The Pages successfully created', 'kommiku'); } } ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Create chapter images on server’ is closed to new replies.