__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
$current_action = $current_id = $page_id = '';
// handle action from url
if (isset($_GET['action']) ) {
$current_action = sanitize_text_field($_GET['action']);
}
if (isset($_GET['bookId']) ) {
$current_id = sanitize_text_field($_GET['bookId']);
}
if (isset($_GET['pageId']) ) {
$page_id = sanitize_text_field($_GET['pageId']);
}
$url=admin_url( "admin.php?page=real3d_flipbook_admin" );
$reak3dflipbooks_converted = get_option("reak3dflipbooks_converted");
if(!$reak3dflipbooks_converted){
$flipbooks = get_option("flipbooks");
if(!$flipbooks){
$flipbooks = array();
}
add_option('reak3dflipbooks_converted', true);
$real3dflipbooks_ids = array();
foreach ($flipbooks as $b) {
$id = $b['id'];
//trace($id);
delete_option('real3dflipbook_'.(string)$id);
add_option('real3dflipbook_'.(string)$id, $b);
array_push($real3dflipbooks_ids,(string)$id);
}
}else{
$real3dflipbooks_ids = get_option('real3dflipbooks_ids');
if(!$real3dflipbooks_ids){
$real3dflipbooks_ids = array();
}
$flipbooks = array();
foreach ($real3dflipbooks_ids as $id) {
// trace($id);
$book = get_option('real3dflipbook_'.$id);
if($book){
$flipbooks[$id] = $book;
// array_push($flipbooks,$book);
}else{
//remove id from array
$real3dflipbooks_ids = array_diff($real3dflipbooks_ids, array($id));
}
}
}
update_option('real3dflipbooks_ids', $real3dflipbooks_ids);
switch( $current_action ) {
case 'edit':
include("edit-flipbook.php");
break;
case 'add_new':
$new_id = 0;
$highest_id = 0;
foreach ($real3dflipbooks_ids as $id) {
if((int)$id > $highest_id) {
$highest_id = (int)$id;
}
}
$current_id = $highest_id + 1;
//create new book
$book = array(
"id" => $current_id,
"name" => "flipbook " . $current_id,
"pages" => array(),
"date" => current_time( 'mysql' ),
"status" => "draft"
);
$flipbooks[$current_id] = $book;
include("edit-flipbook.php");
break;
case 'generate_json':
include("flipbooks.php");
break;
default:
include("flipbooks.php");
break;
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Real3DFlipbook.php | File | 48 KB | 0775 |
|
| activation.php | File | 590 B | 0775 |
|
| addons.php | File | 5.7 KB | 0775 |
|
| admin-actions.php | File | 2.21 KB | 0775 |
|
| archive-r3d.php | File | 210 B | 0775 |
|
| edit-flipbook-post.php | File | 14.29 KB | 0775 |
|
| flipbooks.php | File | 6.99 KB | 0775 |
|
| general.php | File | 8.84 KB | 0775 |
|
| import.php | File | 741 B | 0775 |
|
| index.php | File | 26 B | 0775 |
|
| plugin-admin.php | File | 6.89 KB | 0775 |
|
| post-type.php | File | 11.62 KB | 0775 |
|
| single-r3d.php | File | 1007 B | 0775 |
|