if (!is_dir(MY_BOOKS.$book_title)) {
@mkdir(MY_BOOKS.$book_title, 0755, true);
}
if (!is_file(READER.$book_title.".php")) {
$my_file = fopen(READER.$book_title.".php", 'w');
$my_data = file_get_contents(INFUSIONS."booklib/admin/prototype.txt");
fwrite($my_file, $my_data);
fclose($my_file);
$fname = (READER.$book_title.".php");
$new_file = fopen($fname, 'r');
$content = fread($new_file,filesize($fname));
$content = str_replace('NEW_TITLE', $book_title, $content);
$fhandle = fopen($fname,'w');
fwrite($fhandle,$content);
fclose($fhandle);
}
if (!is_dir(MY_BOOKS.$book_title)) {
@mkdir(MY_BOOKS.$book_title, 0755, true);
$src_file = BOOKS.$book_file;
copy($src_file, MY_BOOKS.$book_title.'/'.$book_file);
$file = (MY_BOOKS.$book_title.'/'.$book_file);
substr_replace($file , 'zip', strrpos($file , '.') +1);
}
Category Forum
Panels and InfusionsLabels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions