Uname:Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64

403WebShell
403Webshell
Server IP : 119.59.104.26  /  Your IP : 216.73.217.10
Web Server : Apache/2
System : Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64
User : com12370 ( 1517)
PHP Version : 7.2.34
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/com12370/.trash/files/wp-content.wFk3kz_syhg/themes/titan/admin/user/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/com12370/.trash/files/wp-content.wFk3kz_syhg/themes/titan/admin/user/piuser.php
<?php

/**

 * Created by ninhle - wiloke team.

 * User: wiloke

 * Date: 7/15/15

 * Time: 7:21 PM

 */



add_action( 'personal_options','pi_profile_fields');

add_action( 'personal_options_update', 'pi_profile_update');

add_action( 'edit_user_profile_update', 'pi_profile_update');

add_action( 'admin_enqueue_scripts','pi_author_enqueue_scripts');







function pi_profile_fields( $user )

{

    $aUserInfo  = get_user_meta( $user->ID, 'pi_user_info', true );

    $avatar 	= isset($aUserInfo['avatar']) ? $aUserInfo['avatar'] : '';

    ?>

    <table class="form-table">

        <?php do_action('pi_before_author_info');  ?>

        <tbody>

        <tr class="user-rich-editing-wrap">

            <th scope="row">

                <label  class="form-label"><?php _e('Avatar', 'titan'); ?></label>

                <p><i><?php _e('We recommend a avatar size of 132x132 pixels', 'titan'); ?></i></p>

            </th>

            <td class="controls pi-wrap-upload">

                <?php pi_upload_form(false, 'pi_user_info[avatar]', $avatar); ?>

            </td>

        </tr>

        </tbody>

        <tbody>



        <tr class="user-rich-editing-wrap pi-flag">

            <th scope="row">

                <label class="form-label"><?php _e('Enable/Disable Social', 'titan') ?></label>

            </th>

            <td class="controls">

                <select id="pi_toggle_social" name="pi_user_info[toggle_social]">

                    <option value="1" <?php echo isset($aUserInfo['toggle_social'])  && $aUserInfo['toggle_social'] == 1 ? 'selected' : '';  ?>><?php _e('Enable', 'titan') ?></option>

                    <option value="0" <?php echo isset($aUserInfo['toggle_social'])  && $aUserInfo['toggle_social'] == 0 ? 'selected' : '';  ?>><?php _e('Disbale', 'titan') ?></option>

                </select>

            </td>

        </tr>



        <tr id="user-rich-editing-wrap" class="user-rich-editing-wrap">

            <th scope="row">

                <label  class="form-label"><?php _e('Social Networks', 'titan'); ?></label>

            </th>

            <td class="controls">

                <?php foreach ( piConfigs::$aConfigs['configs']['rest']['follow'] as $key => $aInfo ) : ?>

                    <div class="wrap-user-social">

                        <div class="pi-social pi-parent">

                            <i class="<?php echo esc_attr($aInfo[0]); ?> js_default_icon"></i>

                            <input type="text" value="<?php echo isset($aUserInfo['social_link'][$key]) ? esc_url($aUserInfo['social_link'][$key]) : '';  ?>" name="pi_user_info[social_link][<?php echo esc_attr($key); ?>]" />

                        </div>

                    </div>

                <?php  endforeach; ?>

            </td>

        </tr>



        <script type="text/javascript">

            jQuery(document).ready(function($){

                $("#pi_toggle_social").change(function()

                {

                    if ( $(this).val() == 1 )

                    {

                        $("#user-rich-editing-wrap").fadeIn();

                    }else{

                        $("#user-rich-editing-wrap").fadeOut();

                    }

                }).trigger("change");

            })

        </script>



        </tbody>

        <?php do_action('pi_after_author_info');  ?>

    </table>

<?php

}



function pi_profile_update($user_id)

{

    if ( current_user_can('edit_user',$user_id) )

    {

        if ( isset($_POST['pi_user_info']) && !empty($_POST['pi_user_info']) )

        {

            update_user_meta($user_id, "pi_user_info", $_POST['pi_user_info']);

        }

    }

}



function pi_author_enqueue_scripts()

{

    $screen = get_current_screen();



    if ( isset($screen->id) && ($screen->id == 'profile' || $screen->id == 'user-edit') )

    {

        wp_enqueue_media();

        wp_register_style('pi-fontawesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css');

        wp_enqueue_style('pi-fontawesome');

    }

}


Youez - 2016 - github.com/yon3zu
LinuXploit