HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/cortonavolley/wp-content/themes/subway/includes/modules/toolbar-hook.php
<?php
//$qode_toolbar = true;

if ( isset( $qode_toolbar ) ):
    add_action( 'after_setup_theme', 'subway_qode_toolbar_section_start', 1);
    add_action( 'wp_logout', 'subway_qode_toolbar_section_end');
    add_action( 'wp_login', 'subway_qode_toolbar_section_end');

    /* Start session */
    if ( ! function_exists('subway_qode_toolbar_section_start')) {
        function subway_qode_toolbar_section_start() {
            if( ! session_id()) {
                session_start();
            }
            if ( ! empty($_GET['animation'])) {
                $_SESSION['qode_animation'] = $_GET['animation'];
            }
            if ( $_SESSION['qode_animation'] == "off" ) {
                $_SESSION['qode_animation'] = "";
            }
        }
    }

    /* End session */

    if ( ! function_exists('subway_qode_toolbar_section_end')) {
        function subway_qode_toolbar_section_end() {
            session_destroy ();
        }
    }

endif;