gallery.php 8.42 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<?php
/**
 * Copyright: 2022 (c)Franco (nextime) Lanza <franco@nexlab.it>
 * License: GNU/GPL version 3.0
 *
 * This file is part of SexHackMe Wordpress Plugin.
 *
 * SexHackMe Wordpress Plugin is free software: you can redistribute it and/or modify it 
 * under the terms of the GNU General Public License as published 
 * by the Free Software Foundation, either version 3 of the License, 
 * or (at your option) any later version.
 *
 * SexHackMe Wordpress Plugin is distributed in the hope that it will be useful, 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License 
 * along with SexHackMe Wordpress Plugin. If not, see <https://www.gnu.org/licenses/>.
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
?>
25 26 27 28 29 30 31
   <div class="wrap">
         <?php do_settings_sections( 'sexhackme-gallery-settings' ); ?>
         <form method="post" action="/wp-admin/options.php">
         <?php settings_fields( 'sexhackme-gallery-settings' ); ?>
         <table class="form-table">
            <tr align="top">
               <td>
32 33 34 35 36 37 38 39 40 41 42
                     <select id="sexhack_video_page" name="sexhack_video_page" class="widefat">
                         <option value="-1">Choose...</option>
                         <?php
                         $opt=get_option("sexhack_video_page");
                         foreach( get_pages() as $page ) {
                            echo '<option value="' . esc_attr( $page->ID ) . '"';
                            if ($opt == $page->ID) { echo "selected";}
                            echo '>' . esc_html( $page->post_title ) . ' ( ID: ' . esc_attr( $page->ID ) . ')' . '</option>';
                         }  ?>
                      </select>
                     <p class="description">Select Video page</p>
43 44
               </td>
            </tr>
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
            <tr align="top">
               <td>
                     <select id="sexhack_gallery_page" name="sexhack_gallery_page" class="widefat">
                         <option value="-1">Choose...</option>
                         <?php
                         $opt=get_option("sexhack_gallery_page");
                         foreach( get_pages() as $page ) {
                            echo '<option value="' . esc_attr( $page->ID ) . '"';
                            if ($opt == $page->ID) { echo "selected";}
                            echo '>' . esc_html( $page->post_title ) . ' ( ID: ' . esc_attr( $page->ID ) . ')' . '</option>';
                         }  ?>
                      </select>
                     <p class="description">Select Gallery page</p>
               </td>
            </tr>
            <tr align="top">
               <td>
                     <select id="sexhack_video404_page" name="sexhack_video404_page" class="widefat">
                         <option value="-1">Choose...</option>
                         <?php
                         $opt=get_option("sexhack_video404_page");
                         foreach( get_pages() as $page ) {
                            echo '<option value="' . esc_attr( $page->ID ) . '"';
                            if ($opt == $page->ID) { echo "selected";}
                            echo '>' . esc_html( $page->post_title ) . ' ( ID: ' . esc_attr( $page->ID ) . ')' . '</option>';
                         }  ?>
                      </select>
72
                     <p class="description">Select Video not found page</p>
73 74
               </td>
            </tr>
75 76 77 78 79
               <tr>
                  <td>
                     <label> Use filter script for HLS?</label>
                     <input type="checkbox" name="sexhack_shmdown" value='1' <?php if(get_option('sexhack_shmdown', false)) echo "checked"; ?>>
                  </td>
80

81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
                  <td>
                     <label>HLS Filter script URI</label>
                     <input type='text' name='sexhack_shmdown_uri' value='<?php echo get_option('sexhack_shmdown_uri', ''); ?>'>
                  </td>
               </tr>
               <tr>
                  <td>
                     <label>Video Upload TMP path</label>
                     <input type='text' name='sexhack_video_tmp_path' value='<?php echo get_option('sexhack_video_tmp_path', '/tmp'); ?>'>
                  </td>
               </tr>
            <tr>
                  <td>
                     <label>Video Upload FLAT path</label>
                     <input type='text' name='sexhack_video_flat_path' value='<?php echo get_option('sexhack_video_flat_path', '/tmp'); ?>'>
                  </td>
               </tr>
            <tr>
                  <td>
                     <label>Video Upload VR path</label>
                     <input type='text' name='sexhack_video_vr_path' value='<?php echo get_option('sexhack_video_vr_path', '/tmp'); ?>'>
                  </td>
               </tr>
            <tr>
                  <td>
                     <label>Video Storage HLS</label>
                     <input type='text' name='sexhack_video_hls_storage' value='<?php echo get_option('sexhack_video_hls_storage', ABSPATH.'HLS'); ?>'>
                  </td>
109 110 111 112 113
                  <td>
                     <label>Video URI HLS</label>
                     <input type='text' name='sexhack_video_hls_uri' value='<?php echo get_option('sexhack_video_hls_uri', '/HLS/'); ?>'>
                  </td>

114 115 116 117 118 119
               </tr>
            <tr>
                  <td>
                     <label>Video Storage Video</label>
                     <input type='text' name='sexhack_video_video_storage' value='<?php echo get_option('sexhack_video_video_storage', ABSPATH.'Videos'); ?>'>
                  </td>
120 121 122 123 124
                  <td>
                     <label>Video URI Video</label>
                     <input type='text' name='sexhack_video_video_uri' value='<?php echo get_option('sexhack_video_video_uri', '/Videos/'); ?>'>
                  </td>

125 126 127 128 129 130
               </tr>
            <tr>
                  <td>
                     <label>Video Storage Photo</label>
                     <input type='text' name='sexhack_video_photo_storage' value='<?php echo get_option('sexhack_video_photo_storage', ABSPATH.'Photos'); ?>'>
                  </td>
131 132 133 134 135
                  <td>
                     <label>Video URI Photo</label>
                     <input type='text' name='sexhack_video_photo_uri' value='<?php echo get_option('sexhack_video_photo_uri', '/Photos/'); ?>'>
                  </td>

136 137 138 139 140 141
               </tr>
            <tr>
                  <td>
                     <label>Video Storage GIF</label>
                     <input type='text' name='sexhack_video_gif_storage' value='<?php echo get_option('sexhack_video_gif_storage', ABSPATH.'GIF'); ?>'>
                  </td>
142 143 144 145 146
                  <td>
                     <label>Video URI GIF</label>
                     <input type='text' name='sexhack_video_gif_uri' value='<?php echo get_option('sexhack_video_gif_uri', '/GIF/'); ?>'>
                  </td>

147 148 149 150 151 152
               </tr>
            <tr>
                  <td>
                     <label>Video Storage VR</label>
                     <input type='text' name='sexhack_video_vr_storage' value='<?php echo get_option('sexhack_video_vr_storage', ABSPATH.'VR'); ?>'>
                  </td>
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
                  <td>
                     <label>Video URI VR</label>
                     <input type='text' name='sexhack_video_vr_uri' value='<?php echo get_option('sexhack_video_vr_uri', '/VR/'); ?>'>
                  </td>

               </tr>
            <tr>
                  <td>
                     <label>Thumbnail Storage</label>
                     <input type='text' name='sexhack_thumbnail_storage' value='<?php echo get_option('sexhack_thumbnail_storage', ABSPATH.'Thumbs'); ?>'>
                  </td>
                  <td>
                     <label>Thumbnail URI</label>
                     <input type='text' name='sexhack_thumbnail_uri' value='<?php echo get_option('sexhack_thumbnail_uri', '/Thumbs/'); ?>'>
                  </td>

               </tr>
            <tr>
                  <td>
                     <label>Social Post Storage</label>
                     <input type='text' name='sexhack_socialpost_storage' value='<?php echo get_option('sexhack_socialpost_storage', ABSPATH.'SOCIALPOSTS'); ?>'>
                  </td>
175 176 177
               </tr>

            
178 179 180 181
         </table>
         <?php submit_button(); ?>
         </form>
   </div>
182