Whoops \ Exception \ ErrorException (E_WARNING)
mysqli_query(): MySQL server has gone away Whoops\Exception\ErrorException thrown with message "mysqli_query(): MySQL server has gone away" Stacktrace: #39 Whoops\Exception\ErrorException in /home/saintgeraz/www/htdocs/cms/wp-includes/wp-db.php:1924 #38 mysqli_query in /home/saintgeraz/www/htdocs/cms/wp-includes/wp-db.php:1924 #37 wpdb:_do_query in /home/saintgeraz/www/htdocs/cms/wp-includes/wp-db.php:1813 #36 wpdb:query in /home/saintgeraz/www/htdocs/cms/wp-includes/wp-db.php:2413 #35 wpdb:get_row in /home/saintgeraz/www/htdocs/cms/wp-includes/option.php:1250 #34 get_network_option in /home/saintgeraz/www/htdocs/cms/wp-includes/option.php:1109 #33 get_site_option in /home/saintgeraz/www/htdocs/cms/wp-includes/option.php:1695 #32 get_site_transient in /home/saintgeraz/www/htdocs/content/plugins/gravityforms/common.php:6175 #31 GFCache:get_transient in /home/saintgeraz/www/htdocs/content/plugins/gravityforms/common.php:6057 #30 GFCache:get in /home/saintgeraz/www/htdocs/content/plugins/gravityforms/forms_model.php:544 #29 GFFormsModel:get_entry_count_per_form in /home/saintgeraz/www/htdocs/content/plugins/gravityforms/forms_model.php:417 #28 GFFormsModel:get_forms in /home/saintgeraz/www/htdocs/content/plugins/gravityforms/forms_model.php:814 #27 GFFormsModel:get_form_id in /home/saintgeraz/www/htdocs/content/mu-plugins/altimax-sitra/resources/library/Altimax/ContactForm.php:20 #26 Com\Altimax\Sitra\Library\Altimax\ContactForm:__construct in /home/saintgeraz/www/htdocs/content/themes/mairie/resources/library/Twig/Extension/Altimax.php:48 #25 Theme\Library\Twig\Extension\Altimax:getGlobals in /home/saintgeraz/www/vendor/twig/twig/lib/Twig/Environment.php:1469 #24 Twig_Environment:initGlobals in /home/saintgeraz/www/vendor/twig/twig/lib/Twig/Environment.php:1386 #23 Twig_Environment:getGlobals in /home/saintgeraz/www/vendor/twig/twig/lib/Twig/Environment.php:1403 #22 Twig_Environment:mergeGlobals in /home/saintgeraz/www/vendor/twig/twig/lib/Twig/Template.php:403 #21 Twig_Template:display in /home/saintgeraz/www/vendor/twig/twig/lib/Twig/Template.php:411 #20 Twig_Template:render in /home/saintgeraz/www/vendor/twig/twig/lib/Twig/Environment.php:363 #19 Twig_Environment:render in /home/saintgeraz/www/htdocs/content/mu-plugins/themosis-framework/src/Themosis/View/Engines/TwigEngine.php:49 #18 Themosis\View\Engines\TwigEngine:get in /home/saintgeraz/www/vendor/illuminate/view/View.php:137 #17 Illuminate\View\View:getContents in /home/saintgeraz/www/vendor/illuminate/view/View.php:120 #16 Illuminate\View\View:renderContents in /home/saintgeraz/www/vendor/illuminate/view/View.php:85 #15 Illuminate\View\View:render in /home/saintgeraz/www/vendor/illuminate/http/Response.php:38 #14 Illuminate\Http\Response:setContent in /home/saintgeraz/www/vendor/symfony/http-foundation/Response.php:206 #13 Symfony\Component\HttpFoundation\Response:__construct in /home/saintgeraz/www/vendor/illuminate/routing/Router.php:615 #12 Illuminate\Routing\Router:prepareResponse in /home/saintgeraz/www/vendor/illuminate/routing/Router.php:572 #11 Illuminate\Routing\Router:Illuminate\Routing\{closure} in /home/saintgeraz/www/vendor/illuminate/routing/Pipeline.php:30 #10 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/saintgeraz/www/vendor/illuminate/pipeline/Pipeline.php:102 #9 Illuminate\Pipeline\Pipeline:then in /home/saintgeraz/www/vendor/illuminate/routing/Router.php:574 #8 Illuminate\Routing\Router:runRouteWithinStack in /home/saintgeraz/www/vendor/illuminate/routing/Router.php:533 #7 Illuminate\Routing\Router:dispatchToRoute in /home/saintgeraz/www/vendor/illuminate/routing/Router.php:511 #6 Illuminate\Routing\Router:dispatch in /home/saintgeraz/www/htdocs/content/mu-plugins/themosis-framework/themosis.php:292 #5 Themosis:setRouter in /home/saintgeraz/www/htdocs/cms/wp-includes/class-wp-hook.php:286 #4 WP_Hook:apply_filters in /home/saintgeraz/www/htdocs/cms/wp-includes/class-wp-hook.php:310 #3 WP_Hook:do_action in /home/saintgeraz/www/htdocs/cms/wp-includes/plugin.php:453 #2 do_action in /home/saintgeraz/www/htdocs/cms/wp-includes/template-loader.php:12 #1 require_once in /home/saintgeraz/www/htdocs/cms/wp-blog-header.php:19 #0 require in /home/saintgeraz/www/htdocs/index.php:11
Stack frames (40)
39
Whoops
\
Exception
\
ErrorException
/
htdocs
/
cms
/
wp-includes
/
wp-db.php
1924
38
mysqli_query
/
htdocs
/
cms
/
wp-includes
/
wp-db.php
1924
37
wpdb
_do_query
/
htdocs
/
cms
/
wp-includes
/
wp-db.php
1813
36
wpdb
query
/
htdocs
/
cms
/
wp-includes
/
wp-db.php
2413
35
wpdb
get_row
/
htdocs
/
cms
/
wp-includes
/
option.php
1250
34
get_network_option
/
htdocs
/
cms
/
wp-includes
/
option.php
1109
33
get_site_option
/
htdocs
/
cms
/
wp-includes
/
option.php
1695
32
get_site_transient
/
htdocs
/
content
/
plugins
/
gravityforms
/
common.php
6175
31
GFCache
get_transient
/
htdocs
/
content
/
plugins
/
gravityforms
/
common.php
6057
30
GFCache
get
/
htdocs
/
content
/
plugins
/
gravityforms
/
forms_model.php
544
29
GFFormsModel
get_entry_count_per_form
/
htdocs
/
content
/
plugins
/
gravityforms
/
forms_model.php
417
28
GFFormsModel
get_forms
/
htdocs
/
content
/
plugins
/
gravityforms
/
forms_model.php
814
27
GFFormsModel
get_form_id
/
htdocs
/
content
/
mu-plugins
/
altimax-sitra
/
resources
/
library
/
Altimax
/
ContactForm.php
20
26
Com
\
Altimax
\
Sitra
\
Library
\
Altimax
\
ContactForm
__construct
/
htdocs
/
content
/
themes
/
mairie
/
resources
/
library
/
Twig
/
Extension
/
Altimax.php
48
25
Theme
\
Library
\
Twig
\
Extension
\
Altimax
getGlobals
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
1469
24
Twig_Environment
initGlobals
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
1386
23
Twig_Environment
getGlobals
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
1403
22
Twig_Environment
mergeGlobals
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
403
21
Twig_Template
display
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
411
20
Twig_Template
render
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
363
19
Twig_Environment
render
/
htdocs
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
View
/
Engines
/
TwigEngine.php
49
18
Themosis
\
View
\
Engines
\
TwigEngine
get
/
vendor
/
illuminate
/
view
/
View.php
137
17
Illuminate
\
View
\
View
getContents
/
vendor
/
illuminate
/
view
/
View.php
120
16
Illuminate
\
View
\
View
renderContents
/
vendor
/
illuminate
/
view
/
View.php
85
15
Illuminate
\
View
\
View
render
/
vendor
/
illuminate
/
http
/
Response.php
38
14
Illuminate
\
Http
\
Response
setContent
/
vendor
/
symfony
/
http-foundation
/
Response.php
206
13
Symfony
\
Component
\
HttpFoundation
\
Response
__construct
/
vendor
/
illuminate
/
routing
/
Router.php
615
12
Illuminate
\
Routing
\
Router
prepareResponse
/
vendor
/
illuminate
/
routing
/
Router.php
572
11
Illuminate
\
Routing
\
Router
Illuminate
\
Routing
\
{closure}
/
vendor
/
illuminate
/
routing
/
Pipeline.php
30
10
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
illuminate
/
pipeline
/
Pipeline.php
102
9
Illuminate
\
Pipeline
\
Pipeline
then
/
vendor
/
illuminate
/
routing
/
Router.php
574
8
Illuminate
\
Routing
\
Router
runRouteWithinStack
/
vendor
/
illuminate
/
routing
/
Router.php
533
7
Illuminate
\
Routing
\
Router
dispatchToRoute
/
vendor
/
illuminate
/
routing
/
Router.php
511
6
Illuminate
\
Routing
\
Router
dispatch
/
htdocs
/
content
/
mu-plugins
/
themosis-framework
/
themosis.php
292
5
Themosis
setRouter
/
htdocs
/
cms
/
wp-includes
/
class-wp-hook.php
286
4
WP_Hook
apply_filters
/
htdocs
/
cms
/
wp-includes
/
class-wp-hook.php
310
3
WP_Hook
do_action
/
htdocs
/
cms
/
wp-includes
/
plugin.php
453
2
do_action
/
htdocs
/
cms
/
wp-includes
/
template-loader.php
12
1
require_once
/
htdocs
/
cms
/
wp-blog-header.php
19
0
require
/
htdocs
/
index.php
11
/
home
/
saintgeraz
/
www
/
htdocs
/
cms
/
wp-includes
/
wp-db.php
 
        return $return_val;
    }
 
    /**
     * Internal function to perform the mysql_query() call.
     *
     * @since 3.9.0
     *
     * @see wpdb::query()
     *
     * @param string $query The query to run.
     */
    private function _do_query( $query ) {
        if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
            $this->timer_start();
        }
 
        if ( ! empty( $this->dbh ) && $this->use_mysqli ) {
            $this->result = mysqli_query( $this->dbh, $query );
        } elseif ( ! empty( $this->dbh ) ) {
            $this->result = mysql_query( $query, $this->dbh );
        }
        $this->num_queries++;
 
        if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
            $this->queries[] = array( $query, $this->timer_stop(), $this->get_caller() );
        }
    }
 
    /**
     * Generates and returns a placeholder escape string for use in queries returned by ::prepare().
     *
     * @since 4.8.3
     *
     * @return string String to escape placeholders.
     */
    public function placeholder_escape() {
        static $placeholder;
 
/
home
/
saintgeraz
/
www
/
htdocs
/
cms
/
wp-includes
/
wp-db.php
 
        return $return_val;
    }
 
    /**
     * Internal function to perform the mysql_query() call.
     *
     * @since 3.9.0
     *
     * @see wpdb::query()
     *
     * @param string $query The query to run.
     */
    private function _do_query( $query ) {
        if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
            $this->timer_start();
        }
 
        if ( ! empty( $this->dbh ) && $this->use_mysqli ) {
            $this->result = mysqli_query( $this->dbh, $query );
        } elseif ( ! empty( $this->dbh ) ) {
            $this->result = mysql_query( $query, $this->dbh );
        }
        $this->num_queries++;
 
        if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
            $this->queries[] = array( $query, $this->timer_stop(), $this->get_caller() );
        }
    }
 
    /**
     * Generates and returns a placeholder escape string for use in queries returned by ::prepare().
     *
     * @since 4.8.3
     *
     * @return string String to escape placeholders.
     */
    public function placeholder_escape() {
        static $placeholder;
 
/
home
/
saintgeraz
/
www
/
htdocs
/
cms
/
wp-includes
/
wp-db.php
        $this->func_call = "\$db->query(\"$query\")";
 
        // If we're writing to the database, make sure the query will write safely.
        if ( $this->check_current_query && ! $this->check_ascii( $query ) ) {
            $stripped_query = $this->strip_invalid_text_from_query( $query );
            // strip_invalid_text_from_query() can perform queries, so we need
            // to flush again, just to make sure everything is clear.
            $this->flush();
            if ( $stripped_query !== $query ) {
                $this->insert_id = 0;
                return false;
            }
        }
 
        $this->check_current_query = true;
 
        // Keep track of the last query for debug.
        $this->last_query = $query;
 
        $this->_do_query( $query );
 
        // MySQL server has gone away, try to reconnect.
        $mysql_errno = 0;
        if ( ! empty( $this->dbh ) ) {
            if ( $this->use_mysqli ) {
                if ( $this->dbh instanceof mysqli ) {
                    $mysql_errno = mysqli_errno( $this->dbh );
                } else {
                    // $dbh is defined, but isn't a real connection.
                    // Something has gone horribly wrong, let's try a reconnect.
                    $mysql_errno = 2006;
                }
            } else {
                if ( is_resource( $this->dbh ) ) {
                    $mysql_errno = mysql_errno( $this->dbh );
                } else {
                    $mysql_errno = 2006;
                }
            }
        }
/
home
/
saintgeraz
/
www
/
htdocs
/
cms
/
wp-includes
/
wp-db.php
     *
     * Executes a SQL query and returns the row from the SQL result.
     *
     * @since 0.71
     *
     * @param string|null $query  SQL query.
     * @param string      $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
     *                            an stdClass object, an associative array, or a numeric array, respectively. Default OBJECT.
     * @param int         $y      Optional. Row to return. Indexed from 0.
     * @return array|object|null|void Database query result in format specified by $output or null on failure
     */
    public function get_row( $query = null, $output = OBJECT, $y = 0 ) {
        $this->func_call = "\$db->get_row(\"$query\",$output,$y)";
 
        if ( $this->check_current_query && $this->check_safe_collation( $query ) ) {
            $this->check_current_query = false;
        }
 
        if ( $query ) {
            $this->query( $query );
        } else {
            return null;
        }
 
        if ( !isset( $this->last_result[$y] ) )
            return null;
 
        if ( $output == OBJECT ) {
            return $this->last_result[$y] ? $this->last_result[$y] : null;
        } elseif ( $output == ARRAY_A ) {
            return $this->last_result[$y] ? get_object_vars( $this->last_result[$y] ) : null;
        } elseif ( $output == ARRAY_N ) {
            return $this->last_result[$y] ? array_values( get_object_vars( $this->last_result[$y] ) ) : null;
        } elseif ( strtoupper( $output ) === OBJECT ) {
            // Back compat for OBJECT being previously case insensitive.
            return $this->last_result[$y] ? $this->last_result[$y] : null;
        } else {
            $this->print_error( " \$db->get_row(string query, output type, int offset) -- Output type must be one of: OBJECT, ARRAY_A, ARRAY_N" );
        }
    }
/
home
/
saintgeraz
/
www
/
htdocs
/
cms
/
wp-includes
/
option.php
         * @since 4.7.0 The `$network_id` parameter was added.
         *
         * @param mixed  $default    The value to return if the site option does not exist
         *                           in the database.
         * @param string $option     Option name.
         * @param int    $network_id ID of the network.
         */
        return apply_filters( "default_site_option_{$option}", $default, $option, $network_id );
    }
 
    if ( ! is_multisite() ) {
        /** This filter is documented in wp-includes/option.php */
        $default = apply_filters( 'default_site_option_' . $option, $default, $option, $network_id );
        $value = get_option( $option, $default );
    } else {
        $cache_key = "$network_id:$option";
        $value = wp_cache_get( $cache_key, 'site-options' );
 
        if ( ! isset( $value ) || false === $value ) {
            $row = $wpdb->get_row( $wpdb->prepare( "SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = %s AND site_id = %d", $option, $network_id ) );
 
            // Has to be get_row instead of get_var because of funkiness with 0, false, null values
            if ( is_object( $row ) ) {
                $value = $row->meta_value;
                $value = maybe_unserialize( $value );
                wp_cache_set( $cache_key, $value, 'site-options' );
            } else {
                if ( ! is_array( $notoptions ) ) {
                    $notoptions = array();
                }
                $notoptions[ $option ] = true;
                wp_cache_set( $notoptions_key, $notoptions, 'site-options' );
 
                /** This filter is documented in wp-includes/option.php */
                $value = apply_filters( 'default_site_option_' . $option, $default, $option, $network_id );
            }
        }
    }
 
    /**
/
home
/
saintgeraz
/
www
/
htdocs
/
cms
/
wp-includes
/
option.php
    update_user_option( $user_id, 'user-settings', '', false );
    setcookie( 'wp-settings-' . $user_id, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH );
}
 
/**
 * Retrieve an option value for the current network based on name of option.
 *
 * @since 2.8.0
 * @since 4.4.0 The `$use_cache` parameter was deprecated.
 * @since 4.4.0 Modified into wrapper for get_network_option()
 *
 * @see get_network_option()
 *
 * @param string $option     Name of option to retrieve. Expected to not be SQL-escaped.
 * @param mixed  $default    Optional value to return if option doesn't exist. Default false.
 * @param bool   $deprecated Whether to use cache. Multisite only. Always set to true.
 * @return mixed Value set for the option.
 */
function get_site_option( $option, $default = false, $deprecated = true ) {
    return get_network_option( null, $option, $default );
}
 
/**
 * Add a new option for the current network.
 *
 * Existing options will not be updated. Note that prior to 3.3 this wasn't the case.
 *
 * @since 2.8.0
 * @since 4.4.0 Modified into wrapper for add_network_option()
 *
 * @see add_network_option()
 *
 * @param string $option Name of option to add. Expected to not be SQL-escaped.
 * @param mixed  $value  Option value, can be anything. Expected to not be SQL-escaped.
 * @return bool False if the option was not added. True if the option was added.
 */
function add_site_option( $option, $value ) {
    return add_network_option( null, $option, $value );
}
 
/
home
/
saintgeraz
/
www
/
htdocs
/
cms
/
wp-includes
/
option.php
     *
     * @param mixed  $pre_site_transient The default value to return if the site transient does not exist.
     *                                   Any value other than false will short-circuit the retrieval
     *                                   of the transient, and return the returned value.
     * @param string $transient          Transient name.
     */
    $pre = apply_filters( "pre_site_transient_{$transient}", false, $transient );
 
    if ( false !== $pre )
        return $pre;
 
    if ( wp_using_ext_object_cache() ) {
        $value = wp_cache_get( $transient, 'site-transient' );
    } else {
        // Core transients that do not have a timeout. Listed here so querying timeouts can be avoided.
        $no_timeout = array('update_core', 'update_plugins', 'update_themes');
        $transient_option = '_site_transient_' . $transient;
        if ( ! in_array( $transient, $no_timeout ) ) {
            $transient_timeout = '_site_transient_timeout_' . $transient;
            $timeout = get_site_option( $transient_timeout );
            if ( false !== $timeout && $timeout < time() ) {
                delete_site_option( $transient_option  );
                delete_site_option( $transient_timeout );
                $value = false;
            }
        }
 
        if ( ! isset( $value ) )
            $value = get_site_option( $transient_option );
    }
 
    /**
     * Filters the value of an existing site transient.
     *
     * The dynamic portion of the hook name, `$transient`, refers to the transient name.
     *
     * @since 2.9.0
     * @since 4.4.0 The `$transient` parameter was added.
     *
     * @param mixed  $value     Value of site transient.
/
home
/
saintgeraz
/
www
/
htdocs
/
content
/
plugins
/
gravityforms
/
common.php
        if ( ! function_exists( 'wp_hash' ) ) {
            return false;
        }
        $key = self::$_transient_prefix . wp_hash( $key );
        if ( is_multisite() ) {
            $success = set_site_transient( $key, $data, $expiration );
        } else {
            $success = set_transient( $key, $data, $expiration );
        }

        return $success;
    }

    private static function get_transient( $key ) {
        if ( ! function_exists( 'wp_hash' ) ) {
            return false;
        }
        $key = self::$_transient_prefix . wp_hash( $key );
        if ( is_multisite() ) {
            $data = get_site_transient( $key );
        } else {
            $data = get_transient( $key );
        }

        return $data;
    }

}

class EncryptDB extends wpdb {
    private static $_instance = null;

    public static function get_instance() {

        if ( self::$_instance == null ) {
            self::$_instance = new EncryptDB( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );
        }

        return self::$_instance;
    }
/
home
/
saintgeraz
/
www
/
htdocs
/
content
/
plugins
/
gravityforms
/
common.php
        global $blog_id;
        if ( is_multisite() ) {
            $key = $blog_id . ':' . $key;
        }

        if ( isset( self::$_cache[ $key ] ) ) {
            $found = true;
            $data  = rgar( self::$_cache[ $key ], 'data' );

            return $data;
        }

        //If set to not persistent, do not check transient for performance reasons
        if ( ! $is_persistent ) {
            $found = false;

            return false;
        }

        $data = self::get_transient( $key );

        if ( false === ( $data ) ) {
            $found = false;

            return false;
        } else {
            self::$_cache[ $key ] = array( 'data' => $data, 'is_persistent' => true );
            $found                = true;

            return $data;
        }

    }

    public static function set( $key, $data, $is_persistent = false, $expiration_seconds = 0 ) {
        global $blog_id;
        $success = true;

        if ( is_multisite() ) {
            $key = $blog_id . ':' . $key;
/
home
/
saintgeraz
/
www
/
htdocs
/
content
/
plugins
/
gravityforms
/
forms_model.php
     * @since  Unknown
     * @access public
     * @global $wpdb
     *
     * @uses GFFormsModel::get_lead_table_name()
     * @uses GFCache::get()
     * @uses GFCache::set()
     *
     * @return array $entry_count Array of forms, containing the form ID and the entry count
     */
    public static function get_entry_count_per_form() {
 
        if ( version_compare( self::get_database_version(), '2.3-dev-1', '<' ) ) {
            return GF_Forms_Model_Legacy::get_entry_count_per_form();
        }
 
        global $wpdb;
        $entry_table_name = self::get_entry_table_name();
 
        $entry_count = GFCache::get( 'get_entry_count_per_form' );
        if ( empty( $entry_count ) ) {
            //Getting entry count per form
            $sql         = "SELECT form_id, count(id) as entry_count FROM $entry_table_name l WHERE status='active' GROUP BY form_id";
            $entry_count = $wpdb->get_results( $sql );
 
            GFCache::set( 'get_entry_count_per_form', $entry_count, true, 30 );
        }
 
        return $entry_count;
    }
 
    /**
     * Gets the number of views per form
     *
     * Checks the cache first.  If not there, gets the count from the database, stores it in the cache, and returns it.
     *
     * @since  Unknown
     * @access public
     * @global $wpdb
     *
/
home
/
saintgeraz
/
www
/
htdocs
/
content
/
plugins
/
gravityforms
/
forms_model.php
        $sort_keyword = $sort_dir == 'ASC' ? 'ASC' : 'DESC';
 
        $db_columns = self::get_form_db_columns();
 
        if ( ! in_array( strtolower( $sort_column ), $db_columns ) ) {
            $sort_column = 'title';
        }
 
        $order_by     = ! empty( $sort_column ) ? "ORDER BY $sort_column $sort_keyword" : '';
 
        $sql = "SELECT f.id, f.title, f.date_created, f.is_active, 0 as entry_count, 0 view_count
                FROM $form_table_name f
                $where_clause
                $order_by";
 
        //Getting all forms
        $forms = $wpdb->get_results( $sql );
 
        //Getting entry count per form
        $entry_count = self::get_entry_count_per_form();
 
        //Getting view count per form
        $view_count = self::get_view_count_per_form();
 
        //Adding entry counts and to form array
        foreach ( $forms as &$form ) {
            foreach ( $view_count as $count ) {
                if ( $count->form_id == $form->id ) {
                    $form->view_count = $count->view_count;
                    break;
                }
            }
 
            foreach ( $entry_count as $count ) {
                if ( $count->form_id == $form->id ) {
                    $form->entry_count = $count->entry_count;
                    break;
                }
            }
        }
/
home
/
saintgeraz
/
www
/
htdocs
/
content
/
plugins
/
gravityforms
/
forms_model.php
            'active'   => intval( $results[0]->active ),
            'inactive' => intval( $results[0]->inactive ),
            'trash'    => intval( $results[0]->trash ),
        );
    }
 
    /**
     * Gets the form ID based on the form title.
     *
     * @since  Unknown
     * @access public
     *
     * @uses GFFormsModel::get_forms()
     *
     * @param string $form_title The form title to search for.
     *
     * @return int The form ID. Returns 0 if not found.
     */
    public static function get_form_id( $form_title ) {
        $forms = self::get_forms();
        foreach ( $forms as $form ) {
            $sanitized_name = str_replace( '[', '', str_replace( ']', '', $form->title ) );
            if ( $form->title == $form_title || $sanitized_name == $form_title ) {
                return $form->id;
            }
        }
 
        return 0;
    }
 
    /**
     * Gets a form based on the form ID.
     *
     * @since  Unknown
     * @access public
     * @global $wpdb
     *
     * @uses GFFormsModel::get_form_table_name()
     *
     * @param int  $form_id     The ID of the form to get.
/
home
/
saintgeraz
/
www
/
htdocs
/
content
/
mu-plugins
/
altimax-sitra
/
resources
/
library
/
Altimax
/
ContactForm.php
<?php
namespace Com\Altimax\Sitra\Library\Altimax;

use RGFormsModel;
use Themosis\Facades\Filter;

class ContactForm
{
    protected $formID = null;

    private $email;
    private $idSitra2;
    private $objectName;

    public function __construct()
    {
        /* Check if gravity form is enabled */
        if (is_plugin_active('gravityforms/gravityforms.php'))
        {
            $this->formID = RGFormsModel::get_form_id('Contact Apidae');
            /* Add js to handle form */
            gravity_form_enqueue_scripts($this->formID, true);
        }
    }

    public function render($email, $idSitra2, $objectName)
    {
        if ($this->formID)
        {
            // if local env, send emailo to custom address
            if ( defined( 'SEND_APIDAE_EMAIL' ) && !SEND_APIDAE_EMAIL ) {
                $this->email = 'adelcroix@altimax.com';
            } else {
                $this->email = $email;
            }
            $this->idSitra2 = $idSitra2;
            $this->objectName = $objectName;

            $this->_setGoogleTracking();

/
home
/
saintgeraz
/
www
/
htdocs
/
content
/
themes
/
mairie
/
resources
/
library
/
Twig
/
Extension
/
Altimax.php
     * @return array
     */
    public function getGlobals()
    {
        /*
         * Obviously the class do not exists here.
         */

        $library = [
            'ImgResizeCache' => new ImgResizeCache(),
            'ImageCache' => new ImageCache(),
            'StaticPages' => new StaticPages(),
            'Breadcrumb' => new Breadcrumb(),
            'TripAdvisor' => new ExternalServicesTripAdvisor(),
            'Redirect' => new Redirect()
        ];

        /* Contact form library is linked to gravity form */
        if (is_plugin_active('gravityforms/gravityforms.php')) {
            $library['ContactForm'] = new ContactForm();
        }

        return $library;
    }
}
/
home
/
saintgeraz
/
www
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
 
        return Twig_Error_Syntax::computeAlternatives($name, $items);
    }
 
    /**
     * @internal
     */
    protected function initGlobals()
    {
        $globals = array();
        foreach ($this->extensions as $name => $extension) {
            if (!$extension instanceof Twig_Extension_GlobalsInterface) {
                $m = new ReflectionMethod($extension, 'getGlobals');
 
                if ('Twig_Extension' !== $m->getDeclaringClass()->getName()) {
                    @trigger_error(sprintf('Defining the getGlobals() method in the "%s" extension without explicitly implementing Twig_Extension_GlobalsInterface is deprecated since version 1.23.', $name), E_USER_DEPRECATED);
                }
            }
 
            $extGlob = $extension->getGlobals();
            if (!is_array($extGlob)) {
                throw new UnexpectedValueException(sprintf('"%s::getGlobals()" must return an array of globals.', get_class($extension)));
            }
 
            $globals[] = $extGlob;
        }
 
        $globals[] = $this->staging->getGlobals();
 
        return call_user_func_array('array_merge', $globals);
    }
 
    /**
     * @internal
     */
    protected function initExtensions()
    {
        if ($this->extensionInitialized) {
            return;
        }
/
home
/
saintgeraz
/
www
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
        } else {
            $this->staging->addGlobal($name, $value);
        }
    }
 
    /**
     * Gets the registered Globals.
     *
     * @return array An array of globals
     *
     * @internal
     */
    public function getGlobals()
    {
        if (!$this->runtimeInitialized && !$this->extensionInitialized) {
            return $this->initGlobals();
        }
 
        if (null === $this->globals) {
            $this->globals = $this->initGlobals();
        }
 
        return $this->globals;
    }
 
    /**
     * Merges a context with the defined globals.
     *
     * @param array $context An array representing the context
     *
     * @return array The context merged with the globals
     */
    public function mergeGlobals(array $context)
    {
        // we don't use array_merge as the context being generally
        // bigger than globals, this code is faster.
        foreach ($this->getGlobals() as $key => $value) {
            if (!array_key_exists($key, $context)) {
                $context[$key] = $value;
            }
/
home
/
saintgeraz
/
www
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
 
        if (null === $this->globals) {
            $this->globals = $this->initGlobals();
        }
 
        return $this->globals;
    }
 
    /**
     * Merges a context with the defined globals.
     *
     * @param array $context An array representing the context
     *
     * @return array The context merged with the globals
     */
    public function mergeGlobals(array $context)
    {
        // we don't use array_merge as the context being generally
        // bigger than globals, this code is faster.
        foreach ($this->getGlobals() as $key => $value) {
            if (!array_key_exists($key, $context)) {
                $context[$key] = $value;
            }
        }
 
        return $context;
    }
 
    /**
     * Gets the registered unary Operators.
     *
     * @return array An array of unary operators
     *
     * @internal
     */
    public function getUnaryOperators()
    {
        if (!$this->extensionInitialized) {
            $this->initExtensions();
        }
/
home
/
saintgeraz
/
www
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
/
home
/
saintgeraz
/
www
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Template.php
     * @return array An array of blocks
     *
     * @internal
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = array())
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        ob_start();
        try {
            $this->display($context);
        } catch (Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = array())
    {
        try {
/
home
/
saintgeraz
/
www
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
        @trigger_error(sprintf('The %s method is deprecated since version 1.22 and will be removed in Twig 2.0.', __METHOD__), E_USER_DEPRECATED);
 
        return $this->templateClassPrefix;
    }
 
    /**
     * Renders a template.
     *
     * @param string $name    The template name
     * @param array  $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     *
     * @throws Twig_Error_Loader  When the template cannot be found
     * @throws Twig_Error_Syntax  When an error occurred during compilation
     * @throws Twig_Error_Runtime When an error occurred during rendering
     */
    public function render($name, array $context = array())
    {
        return $this->loadTemplate($name)->render($context);
    }
 
    /**
     * Displays a template.
     *
     * @param string $name    The template name
     * @param array  $context An array of parameters to pass to the template
     *
     * @throws Twig_Error_Loader  When the template cannot be found
     * @throws Twig_Error_Syntax  When an error occurred during compilation
     * @throws Twig_Error_Runtime When an error occurred during rendering
     */
    public function display($name, array $context = array())
    {
        $this->loadTemplate($name)->display($context);
    }
 
    /**
     * Loads a template.
     *
/
home
/
saintgeraz
/
www
/
htdocs
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
View
/
Engines
/
TwigEngine.php
    }
 
    /**
     * Return the evaluated template.
     *
     * @param string $path The file name with its file extension.
     * @param array  $data Template data (view data)
     *
     * @return string
     */
    public function get($path, array $data = [])
    {
        $file = array_search($path, $this->finder->getViews());
 
        /*
         * Allow the use of a '.' notation.
         */
        $file = themosis_convert_path($file);
 
        return $this->environment->render($file.$this->extension, $data);
    }
}
 
/
home
/
saintgeraz
/
www
/
vendor
/
illuminate
/
view
/
View.php
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
     * Get the data bound to the view instance.
     *
     * @return array
     */
    protected function gatherData()
    {
        $data = array_merge($this->factory->getShared(), $this->data);
 
        foreach ($data as $key => $value) {
            if ($value instanceof Renderable) {
                $data[$key] = $value->render();
            }
        }
 
        return $data;
    }
 
/
home
/
saintgeraz
/
www
/
vendor
/
illuminate
/
view
/
View.php
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
     */
    protected function renderContents()
    {
        // We will keep track of the amount of views being rendered so we can flush
        // the section after the complete rendering operation is done. This will
        // clear out the sections for any separate views that may be rendered.
        $this->factory->incrementRender();
 
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
/
home
/
saintgeraz
/
www
/
vendor
/
illuminate
/
view
/
View.php
        $this->view = $view;
        $this->path = $path;
        $this->engine = $engine;
        $this->factory = $factory;
 
        $this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
    }
 
    /**
     * Get the string contents of the view.
     *
     * @param  callable|null  $callback
     * @return string
     *
     * @throws \Throwable
     */
    public function render(callable $callback = null)
    {
        try {
            $contents = $this->renderContents();
 
            $response = isset($callback) ? call_user_func($callback, $this, $contents) : null;
 
            // Once we have the contents of the view, we will flush the sections if we are
            // done rendering all views so that there is nothing left hanging over when
            // another view gets rendered in the future by the application developer.
            $this->factory->flushStateIfDoneRendering();
 
            return ! is_null($response) ? $response : $contents;
        } catch (Exception $e) {
            $this->factory->flushState();
 
            throw $e;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
/
home
/
saintgeraz
/
www
/
vendor
/
illuminate
/
http
/
Response.php
     * @return $this
     */
    public function setContent($content)
    {
        $this->original = $content;
 
        // If the content is "JSONable" we will set the appropriate header and convert
        // the content to JSON. This is useful when returning something like models
        // from routes that will be automatically transformed to their JSON form.
        if ($this->shouldBeJson($content)) {
            $this->header('Content-Type', 'application/json');
 
            $content = $this->morphToJson($content);
        }
 
        // If this content implements the "Renderable" interface then we will call the
        // render method on the object so we will avoid any "__toString" exceptions
        // that might be thrown and have their errors obscured by PHP's handling.
        elseif ($content instanceof Renderable) {
            $content = $content->render();
        }
 
        return parent::setContent($content);
    }
 
    /**
     * Determine if the given content should be turned into JSON.
     *
     * @param  mixed  $content
     * @return bool
     */
    protected function shouldBeJson($content)
    {
        return $content instanceof Jsonable ||
               $content instanceof ArrayObject ||
               $content instanceof JsonSerializable ||
               is_array($content);
    }
 
    /**
/
home
/
saintgeraz
/
www
/
vendor
/
symfony
/
http-foundation
/
Response.php
        504 => 'Gateway Timeout',
        505 => 'HTTP Version Not Supported',
        506 => 'Variant Also Negotiates',                                     // RFC2295
        507 => 'Insufficient Storage',                                        // RFC4918
        508 => 'Loop Detected',                                               // RFC5842
        510 => 'Not Extended',                                                // RFC2774
        511 => 'Network Authentication Required',                             // RFC6585
    );
 
    /**
     * @param mixed $content The response content, see setContent()
     * @param int   $status  The response status code
     * @param array $headers An array of response headers
     *
     * @throws \InvalidArgumentException When the HTTP status code is not valid
     */
    public function __construct($content = '', $status = 200, $headers = array())
    {
        $this->headers = new ResponseHeaderBag($headers);
        $this->setContent($content);
        $this->setStatusCode($status);
        $this->setProtocolVersion('1.0');
    }
 
    /**
     * Factory method for chainability.
     *
     * Example:
     *
     *     return Response::create($body, 200)
     *         ->setSharedMaxAge(300);
     *
     * @param mixed $content The response content, see setContent()
     * @param int   $status  The response status code
     * @param array $headers An array of response headers
     *
     * @return static
     */
    public static function create($content = '', $status = 200, $headers = array())
    {
/
home
/
saintgeraz
/
www
/
vendor
/
illuminate
/
routing
/
Router.php
     * @return array
     */
    protected function sortMiddleware(Collection $middlewares)
    {
        return (new SortedMiddleware($this->middlewarePriority, $middlewares))->all();
    }
 
    /**
     * Create a response instance from the given value.
     *
     * @param  \Symfony\Component\HttpFoundation\Request  $request
     * @param  mixed  $response
     * @return \Illuminate\Http\Response
     */
    public function prepareResponse($request, $response)
    {
        if ($response instanceof PsrResponseInterface) {
            $response = (new HttpFoundationFactory)->createResponse($response);
        } elseif (! $response instanceof SymfonyResponse) {
            $response = new Response($response);
        }
 
        return $response->prepare($request);
    }
 
    /**
     * Substitute the route bindings onto the route.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return \Illuminate\Routing\Route
     */
    public function substituteBindings($route)
    {
        foreach ($route->parameters() as $key => $value) {
            if (isset($this->binders[$key])) {
                $route->setParameter($key, $this->performBinding($key, $value, $route));
            }
        }
 
        return $route;
/
home
/
saintgeraz
/
www
/
vendor
/
illuminate
/
routing
/
Router.php
    /**
     * Run the given route within a Stack "onion" instance.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
                        ->then(function ($request) use ($route) {
                            return $this->prepareResponse(
                                $request, $route->run()
                            );
                        });
    }
 
    /**
     * Gather the middleware for the given route with resolved class names.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return array
     */
    public function gatherRouteMiddleware(Route $route)
    {
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten();
 
        return $this->sortMiddleware($middleware);
    }
 
    /**
/
home
/
saintgeraz
/
www
/
vendor
/
illuminate
/
routing
/
Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
 
/**
 * This extended pipeline catches any exceptions that occur during each slice.
 *
 * The exceptions are converted to HTTP responses for proper middleware handling.
 */
class Pipeline extends BasePipeline
{
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            try {
                return $destination($passable);
            } catch (Exception $e) {
                return $this->handleException($passable, $e);
            } catch (Throwable $e) {
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
/
home
/
saintgeraz
/
www
/
vendor
/
illuminate
/
pipeline
/
Pipeline.php
    public function via($method)
    {
        $this->method = $method;
 
        return $this;
    }
 
    /**
     * Run the pipeline with a final destination callback.
     *
     * @param  \Closure  $destination
     * @return mixed
     */
    public function then(Closure $destination)
    {
        $pipeline = array_reduce(
            array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
        );
 
        return $pipeline($this->passable);
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            return $destination($passable);
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
/
home
/
saintgeraz
/
www
/
vendor
/
illuminate
/
routing
/
Router.php
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
                        ->then(function ($request) use ($route) {
                            return $this->prepareResponse(
                                $request, $route->run()
                            );
                        });
    }
 
    /**
     * Gather the middleware for the given route with resolved class names.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return array
     */
    public function gatherRouteMiddleware(Route $route)
    {
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten();
 
        return $this->sortMiddleware($middleware);
    }
 
    /**
     * Sort the given middleware by priority.
     *
/
home
/
saintgeraz
/
www
/
vendor
/
illuminate
/
routing
/
Router.php
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    public function dispatchToRoute(Request $request)
    {
        // First we will find a route that matches this request. We will also set the
        // route resolver on the request so middlewares assigned to the route will
        // receive access to this route instance for checking of the parameters.
        $route = $this->findRoute($request);
 
        $request->setRouteResolver(function () use ($route) {
            return $route;
        });
 
        $this->events->dispatch(new Events\RouteMatched($route, $request));
 
        $response = $this->runRouteWithinStack($route, $request);
 
        return $this->prepareResponse($request, $response);
    }
 
    /**
     * Find the route matching a given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Routing\Route
     */
    protected function findRoute($request)
    {
        $this->current = $route = $this->routes->match($request);
 
        $this->container->instance(Route::class, $route);
 
        return $route;
    }
 
    /**
/
home
/
saintgeraz
/
www
/
vendor
/
illuminate
/
routing
/
Router.php
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return void
     */
    protected function mergeGroupAttributesIntoRoute($route)
    {
        $route->setAction($this->mergeWithLastGroup($route->getAction()));
    }
 
    /**
     * Dispatch the request to the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function dispatch(Request $request)
    {
        $this->currentRequest = $request;
 
        return $this->dispatchToRoute($request);
    }
 
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    public function dispatchToRoute(Request $request)
    {
        // First we will find a route that matches this request. We will also set the
        // route resolver on the request so middlewares assigned to the route will
        // receive access to this route instance for checking of the parameters.
        $route = $this->findRoute($request);
 
        $request->setRouteResolver(function () use ($route) {
            return $route;
        });
 
        $this->events->dispatch(new Events\RouteMatched($route, $request));
/
home
/
saintgeraz
/
www
/
htdocs
/
content
/
mu-plugins
/
themosis-framework
/
themosis.php
             * Register framework assets.
             */
            $this->container['asset']->add('themosis-core-styles', 'css/_themosisCore.css', ['wp-color-picker'])->to('admin');
            $this->container['asset']->add('themosis-core-scripts', 'js/_themosisCore.js', ['jquery', 'jquery-ui-sortable', 'underscore', 'backbone', 'mce-view', 'wp-color-picker'], '1.3.0', true)->to('admin');
        }
 
        /**
         * Hook into front-end routing.
         * Setup the router API to be executed before
         * theme default templates.
         */
        public function setRouter()
        {
            if (is_feed() || is_comment_feed()) {
                return;
            }
 
            try {
                $request = $this->container['request'];
                $response = $this->container['router']->dispatch($request);
 
                // We only send back the content because, headers are already defined
                // by WordPress internals.
                $response->sendContent();
            } catch (\Symfony\Component\HttpKernel\Exception\NotFoundHttpException $exception) {
                /*
                 * Fallback to WordPress templates.
                 */
            }
        }
 
        /**
         * Enqueue Admin scripts.
         */
        public function adminEnqueueScripts()
        {
            /*
             * Make sure the media scripts are always enqueued.
             */
            wp_enqueue_media();
/
home
/
saintgeraz
/
www
/
htdocs
/
cms
/
wp-includes
/
class-wp-hook.php
        }
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = $priority = current( $this->iterations[ $nesting_level ] );
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if( ! $this->doing_action ) {
                    $args[ 0 ] = $value;
                }
 
                // Avoid the array_slice if possible.
                if ( $the_['accepted_args'] == 0 ) {
                    $value = call_user_func_array( $the_['function'], array() );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int)$the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Executes the callback functions hooked on a specific action hook.
     *
     * @since 4.7.0
     *
     * @param mixed $args Arguments to pass to the hook callbacks.
/
home
/
saintgeraz
/
www
/
htdocs
/
cms
/
wp-includes
/
class-wp-hook.php
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Executes the callback functions hooked on a specific action hook.
     *
     * @since 4.7.0
     *
     * @param mixed $args Arguments to pass to the hook callbacks.
     */
    public function do_action( $args ) {
        $this->doing_action = true;
        $this->apply_filters( '', $args );
 
        // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
        if ( ! $this->nesting_level ) {
            $this->doing_action = false;
        }
    }
 
    /**
     * Processes the functions hooked into the 'all' hook.
     *
     * @since 4.7.0
     *
     * @param array $args Arguments to pass to the hook callbacks. Passed by reference.
     */
    public function do_all_hook( &$args ) {
        $nesting_level = $this->nesting_level++;
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
/
home
/
saintgeraz
/
www
/
htdocs
/
cms
/
wp-includes
/
plugin.php
    }
 
    if ( !isset($wp_filter[$tag]) ) {
        if ( isset($wp_filter['all']) )
            array_pop($wp_current_filter);
        return;
    }
 
    if ( !isset($wp_filter['all']) )
        $wp_current_filter[] = $tag;
 
    $args = array();
    if ( is_array($arg) && 1 == count($arg) && isset($arg[0]) && is_object($arg[0]) ) // array(&$this)
        $args[] =& $arg[0];
    else
        $args[] = $arg;
    for ( $a = 2, $num = func_num_args(); $a < $num; $a++ )
        $args[] = func_get_arg($a);
 
    $wp_filter[ $tag ]->do_action( $args );
 
    array_pop($wp_current_filter);
}
 
/**
 * Retrieve the number of times an action is fired.
 *
 * @since 2.1.0
 *
 * @global array $wp_actions Increments the amount of times action was triggered.
 *
 * @param string $tag The name of the action hook.
 * @return int The number of times action hook $tag is fired.
 */
function did_action($tag) {
    global $wp_actions;
 
    if ( ! isset( $wp_actions[ $tag ] ) )
        return 0;
 
/
home
/
saintgeraz
/
www
/
htdocs
/
cms
/
wp-includes
/
template-loader.php
<?php
/**
 * Loads the correct template based on the visitor's url
 * @package WordPress
 */
if ( defined('WP_USE_THEMES') && WP_USE_THEMES )
    /**
     * Fires before determining which template to load.
     *
     * @since 1.5.0
     */
    do_action( 'template_redirect' );
 
/**
 * Filters whether to allow 'HEAD' requests to generate content.
 *
 * Provides a significant performance bump by exiting before the page
 * content loads for 'HEAD' requests. See #14348.
 *
 * @since 3.5.0
 *
 * @param bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
 */
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) )
    exit();
 
// Process feeds and trackbacks even if not using themes.
if ( is_robots() ) :
    /**
     * Fired when the template loader determines a robots.txt request.
     *
     * @since 2.1.0
     */
    do_action( 'do_robots' );
    return;
elseif ( is_feed() ) :
    do_feed();
    return;
elseif ( is_trackback() ) :
    include( ABSPATH . 'wp-trackback.php' );
/
home
/
saintgeraz
/
www
/
htdocs
/
cms
/
wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( !isset($wp_did_header) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once( dirname(__FILE__) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.php' );
 
}
 
/
home
/
saintgeraz
/
www
/
htdocs
/
index.php
<?php
// die("Afin d’améliorer notre service, le site est momentanément indisponible.<br/>Veuillez nous excuser pour la gêne occasionnée.");
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require dirname(__FILE__).'/cms/wp-blog-header.php';
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /credits/
USER saintgeraz
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /credits/
REMOTE_PORT 55562
SCRIPT_FILENAME /home/saintgeraz/www/htdocs/index.php
SERVER_ADMIN postmaster@mairie.saintgervais.com
DOCUMENT_ROOT /home/saintgeraz/www/htdocs/
REMOTE_ADDR 18.212.92.235
SERVER_PORT 443
SERVER_ADDR 10.23.40.100
SERVER_NAME mairie.saintgervais.com
SERVER_SIGNATURE
HTTP_ACCEPT_ENCODING gzip
HTTP_IF_MODIFIED_SINCE Wed, 14 Nov 2018 00:06:08 GMT
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 18.212.92.235
HTTP_X_PREDICTOR 1
HTTP_HOST mairie.saintgervais.com
HTTP_REMOTE_IP 18.212.92.235
ENVIRONMENT development
CFG_CLUSTER cluster023
HTTPS on
SCRIPT_URI https://mairie.saintgervais.com:443/credits/
SCRIPT_URL /credits/
GEOIP_LONGITUDE -77.472801
GEOIP_LATITUDE 39.048100
GEOIP_AREA_CODE 703
GEOIP_DMA_CODE 511
GEOIP_CITY Ashburn
GEOIP_REGION VA
GEOIP_COUNTRY_NAME United States
GEOIP_COUNTRY_CODE US
UNIQUE_ID XEFBSwoXKGQAAEiqPnQAAAAM
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1547780427.7406
REQUEST_TIME 1547780427
argv Array ( )
argc 0
ACF_PRO_KEY b3JkZXJfaWQ9OTAxMDF8dHlwZT1kZXZlbG9wZXJ8ZGF0ZT0yMDE2LTA5LTIxIDA4OjAyOjMx
DB_NAME wp_ot_saintgervais
DB_USER altimax
DB_PASSWORD RSaktIN2fb3yhTjJirZc
DB_HOST tf2483-018.privatesql:35278
WP_HOME https://www.saintgervais.com
WP_SITEURL https://www.saintgervais.com/cms
APIDAEROOTPATH /home/saintgeraz/www/modules/synchro-apidae/module/Sitra
ALLOWED_IPS 80.245.23.179,127.0.0.1,164.132.235.17,91.134.248.235
SITRAPATH /home/saintgeraz/www/htdocs/sitra
PHPPATH /usr/local/php7.1/bin/php
PROJETID 2798
Key Value
USER saintgeraz
SCRIPT_NAME /index.php
REQUEST_URI /credits/
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /credits/
REMOTE_PORT 55562
SCRIPT_FILENAME /home/saintgeraz/www/htdocs/index.php
SERVER_ADMIN postmaster@mairie.saintgervais.com
DOCUMENT_ROOT /home/saintgeraz/www/htdocs
REMOTE_ADDR 18.212.92.235
SERVER_PORT 443
SERVER_ADDR 10.23.40.100
SERVER_NAME mairie.saintgervais.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_ACCEPT_ENCODING gzip
HTTP_IF_MODIFIED_SINCE Wed, 14 Nov 2018 00:06:08 GMT
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 18.212.92.235
HTTP_X_PREDICTOR 1
HTTP_HOST mairie.saintgervais.com
HTTP_REMOTE_IP 18.212.92.235
ENVIRONMENT development
CFG_CLUSTER cluster023
HTTPS on
SCRIPT_URI https://mairie.saintgervais.com:443/credits/
SCRIPT_URL /credits/
GEOIP_LONGITUDE -77.472801
GEOIP_LATITUDE 39.048100
GEOIP_AREA_CODE 703
GEOIP_DMA_CODE 511
GEOIP_CITY Ashburn
GEOIP_REGION VA
GEOIP_COUNTRY_NAME United States
GEOIP_COUNTRY_CODE US
UNIQUE_ID XEFBSwoXKGQAAEiqPnQAAAAM
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1547780427.7406
REQUEST_TIME 1547780427
argv Array ( )
argc 0
ACF_PRO_KEY b3JkZXJfaWQ9OTAxMDF8dHlwZT1kZXZlbG9wZXJ8ZGF0ZT0yMDE2LTA5LTIxIDA4OjAyOjMx
DB_NAME wp_ot_saintgervais
DB_USER altimax
DB_PASSWORD RSaktIN2fb3yhTjJirZc
DB_HOST tf2483-018.privatesql:35278
WP_HOME https://www.saintgervais.com
WP_SITEURL https://www.saintgervais.com/cms
APIDAEROOTPATH /home/saintgeraz/www/modules/synchro-apidae/module/Sitra
ALLOWED_IPS 80.245.23.179,127.0.0.1,164.132.235.17,91.134.248.235
SITRAPATH /home/saintgeraz/www/htdocs/sitra
PHPPATH /usr/local/php7.1/bin/php
PROJETID 2798
0. Whoops\Handler\PrettyPageHandler