X7ROOT File Manager
Current Path:
/var/softaculous/sitepad/editor/site-data/plugins/pagelayer-pro/main
var
/
softaculous
/
sitepad
/
editor
/
site-data
/
plugins
/
pagelayer-pro
/
main
/
ðŸ“
..
📄
ai-functions.php
(14.34 KB)
📄
ajax.php
(57.04 KB)
📄
blocks.php
(14.46 KB)
📄
class.php
(5.15 KB)
📄
custom_fonts.php
(9.06 KB)
📄
customizer-controls.php
(24.5 KB)
📄
customizer.php
(15.76 KB)
📄
download_google_fonts.php
(3.55 KB)
📄
font-options.php
(21.72 KB)
📄
freemium.php
(247.52 KB)
📄
freemium_functions.php
(31.5 KB)
📄
functions.php
(10.59 KB)
📄
getting_started.php
(9.77 KB)
📄
import.php
(56.21 KB)
📄
license.php
(5.83 KB)
📄
live-body.php
(8.87 KB)
📄
live.php
(13.34 KB)
📄
nav_walker.php
(8.86 KB)
📄
pagelayer-init.php
(6.51 KB)
📄
parse-shortcodes.php
(3.1 KB)
📄
plugin-update-checker.php
(52.56 KB)
📄
post_metas.php
(15.29 KB)
📄
premium-woocommerce.php
(19.75 KB)
📄
premium.php
(431.47 KB)
📄
premium_functions.php
(29.18 KB)
📄
replace-media.php
(6.63 KB)
📄
settings.php
(29.01 KB)
📄
shortcode_functions.php
(51.51 KB)
📄
shortcodes.php
(389.92 KB)
📄
template-builder.php
(29.4 KB)
📄
template.php
(39.13 KB)
📄
website.php
(23.76 KB)
📄
woocommerce.php
(22.43 KB)
Editing: license.php
<?php ////////////////////////////////////////////////////////////// //=========================================================== // license.php //=========================================================== // PAGELAYER // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Pulkit Gupta // Date: 23rd Jan 2017 // Time: 23:00 hrs // Site: http://pagelayer.com/wordpress (PAGELAYER) // ---------------------------------------------------------- // Please Read the Terms of use at http://pagelayer.com/tos // ---------------------------------------------------------- //=========================================================== // (c)Pagelayer Team //=========================================================== ////////////////////////////////////////////////////////////// // Are we being accessed directly ? if(!defined('PAGELAYER_VERSION')) { exit('Hacking Attempt !'); } include_once(PAGELAYER_DIR.'/main/settings.php'); // The License Page function pagelayer_license(){ global $pl_error, $lic_resp; if(isset($_REQUEST['save_pl_license'])){ check_admin_referer('pagelayer-options'); } // Is there a license key ? if(isset($_POST['save_pl_license'])){ $license = pagelayer_optpost('pagelayer_license'); // Check if its a valid license if(empty($license)){ $pl_error['lic_invalid'] = __('The license key was not submitted', 'pagelayer'); return pagelayer_license_T(); } pagelayer_pro_load_license($license); if(is_array($lic_resp)){ $json = json_decode($lic_resp['body'], true); //print_r($json); }else{ $pl_error['resp_invalid'] = __('The response was malformed<br>'.var_export($lic_resp, true), 'pagelayer'); return pagelayer_license_T(); } // Save the License if(empty($json['license'])){ $pl_error['lic_invalid'] = __('The license key is invalid', 'pagelayer'); return pagelayer_license_T(); }else{ // Mark as saved $GLOBALS['pl_saved'] = true; } } pagelayer_license_T(); } // The License Page - THEME function pagelayer_license_T(){ global $pagelayer, $pl_error; pagelayer_page_header('Pagelayer License'); // Saved ? if(!empty($GLOBALS['pl_saved'])){ echo '<div class="notice notice-success"><p>'. __('The settings were saved successfully', 'pagelayer'). '</p></div><br />'; } if(date('Ymd') <= 20200331 && !defined('PAGELAYER_PREMIUM')){ echo '<div class="updated"><p><span style="font-size: 14px"><b>Promotional Offer</b></span> : If you buy <a href="'.PAGELAYER_PRO_PRICE_URL.'"><b>Pagelayer Pro</b></a> before <b>31st March, 2020</b> then you will get an additional year free and your license will expire on <b>31st March, 2022</b></p></div><br />.'; } // Any errors ? if(!empty($pl_error)){ pagelayer_report_error($pl_error);echo '<br />'; } ?> <div class="postbox"> <button class="handlediv button-link" aria-expanded="true" type="button"> <span class="screen-reader-text"><?php _e('Toggle panel: System Information');?></span> <span class="toggle-indicator" aria-hidden="true"></span> </button> <h2 class="hndle ui-sortable-handle"> <span><?php echo __('System Information', 'pagelayer'); ?></span> </h2> <div class="inside"> <form action="" method="post" enctype="multipart/form-data"> <?php wp_nonce_field('pagelayer-options'); ?> <table class="wp-list-table fixed striped users" cellspacing="1" border="0" width="95%" cellpadding="10" align="center"> <?php echo ' <tr> <th align="left" width="25%">'.__('Pagelayer Version', 'pagelayer').'</th> <td>'.PAGELAYER_VERSION.(defined('PAGELAYER_PREMIUM') ? ' (PRO Version)' : '').'</td> </tr>'; echo ' <tr> <th align="left" valign="top">'.__('Pagelayer License', 'pagelayer').'</th> <td align="left"> '.(defined('PAGELAYER_PREMIUM') && empty($pagelayer->license) ? '<span style="color:red">Unlicensed</span> ' : '').' <input type="text" name="pagelayer_license" value="'.(empty($pagelayer->license) ? '' : $pagelayer->license['license']).'" size="30" placeholder="e.g. PAGEL-11111-22222-33333-44444" style="width:300px;" /> <input name="save_pl_license" class="button button-primary" value="Update License" type="submit" />'; if(!empty($pagelayer->license)){ $expires = $pagelayer->license['expires']; $expires = substr($expires, 0, 4).'/'.substr($expires, 4, 2).'/'.substr($expires, 6); echo '<div style="margin-top:10px;">License Status : '.(empty($pagelayer->license['status_txt']) ? 'N.A.' : $pagelayer->license['status_txt']).' '.($pagelayer->license['expires'] <= date('Ymd') ? __('License Expires : ', 'pagelayer-pro') .'<span style="color:red">'.$expires.'</span>' : (empty($pagelayer->license['has_plid']) ? __('License Expires : ', 'pagelayer-pro') . $expires : '')).' </div>'; } echo '</td> </tr>'; echo '<tr> <th align="left">'.__('URL', 'pagelayer').'</th> <td>'.get_site_url().'</td> </tr> <tr> <th align="left">'.__('Path', 'pagelayer').'</th> <td>'.ABSPATH.'</td> </tr> <tr> <th align="left">'.__('Server\'s IP Address', 'pagelayer').'</th> <td>'.$_SERVER['SERVER_ADDR'].'</td> </tr> <tr> <th align="left">'.__('wp-config.php is writable', 'pagelayer').'</th> <td>'.(is_writable(ABSPATH.'/wp-config.php') ? '<span style="color:red">Yes</span>' : '<span style="color:green">No</span>').'</td> </tr>'; if(file_exists(ABSPATH.'/.htaccess')){ echo ' <tr> <th align="left">'.__('.htaccess is writable', 'pagelayer').'</th> <td>'.(is_writable(ABSPATH.'/.htaccess') ? '<span style="color:red">Yes</span>' : '<span style="color:green">No</span>').'</td> </tr>'; } ?> </table> </form> </div> </div> <?php pagelayer_page_footer(); }
Upload File
Create Folder