Skip to main content Help Control Panel

 

Communauté «   Blogs «   L'espace perso de Jmarc «   Pense-bête «  

$context (global.php)

Liste des informations contenues dans la variable $context.

Dans un fichier .php, en appelant include_once '/yacs_path/shared/global.php';  , on obtient une varaible $context qui contient :

$context: array =
  accepted_methods: string = "GET,HEAD,OPTIONS,POST,PUT"
  arguments: array = (si url du genre .../articles/view.php/10/page-de-test, alors :
        0: string = "10"
        1: string = "page-de-test")
  components: array =
        bookmarklets: string = ""
        boxes: string = ""
        categories: string = ""
        channels: string = ""
        contextual: string = ""
        download: string = ""
        neighbours: string = ""
        news: string = ""
        overlay: string = ""
        profile: string = ""
        referrals: string = ""
        servers: string = ""
        share: string = ""
        twins: string = ""
  content_type: string = "text/html"
  country: string = "N/A"
  country_code: string = "--"
  debug: array =
  directory_mask: long = 493
  empowered: string = "?"
  error: array =
  extra: string = ""
  file_mask: long = 420
  gmt_offset: long = 0
  javascript: array =
  language: string = "fr"
  navigation: string = ""
  p3p_compact_policy: string = "CAO PSA OUR"
  page_author: string = ""
  page_details: string = ""
  page_footer: string = ""
  page_header: string = ""
  page_image: string = ""
  page_language: undefined = NULL
  page_menu: array =
  page_publisher: string = ""
  page_tags: string = ""
  page_title: string = ""
  page_tools: array =
  path_bar: array =
  prefix: string = ""
  suffix: string = ""
  site_icon: string = ""
  site_slogan: string = ""
  skins_extra_components: string = "tools image profile news overlay boxes share channels twins neighbours contextual categories bookmarklets servers download referrals visited"
  skins_main_components: string = "title error text tags details bar"
  skins_navigation_components: string = "menu user navigation"
  skins_with_details: string = "N"
  start_time: double = 1266413774.6719
  text: string = ""
  users_allowed_tags: string = "<a><abbr><acronym><b><big><br><code><dd><del><dfn><dl><dt><em><i><img><ins><li><ol><p><q><small><span><strong><sub><sup><tt><u><ul>"
  users_default_editor: string = "tinymce"
  virtual_path: string = ""
  with_alternate_urls: string = "N"
  with_debug: string = "N"
  with_friendly_urls: string = "N"
  with_profile: string = "N"
  path_to_root: string = "C:/wamp/www/yacs/"
  main_host: string = "localhost"
  database_server: string = "localhost"
  database_user: string = "root"
  database_password: string = ""
  database: string = "yacs"
  table_prefix: string = "yacs_"
  users_database_server: string = ""
  users_database_user: string = ""
  users_database_password: string = ""
  users_database: string = ""
  users_table_prefix: string = ""
  mail_server: string = ""
  mail_encoding: string = "base64"
  mail_from: string = ""
  mail_hourly_maximum: long = 50
  mail_logger_recipient: string = ""
  mail_account: string = ""
  mail_password: string = ""
  mail_variant: string = "local"
  proxy_server: string = ""
  proxy_user: string = ""
  proxy_password: string = ""
  debug_mail: string = "N"
  preferred_language: string = "fr"
  skin: string = "/home/yacs/www/skins/digital"
  url_to_root: string = "/yacs/"
  with_compression: string = "N"
  with_cron: string = "N"
  with_email: string = "N"
  with_given_host: string = "N"
  with_https: string = "N"
  without_cache: string = "N"
  without_http_cache: string = "N"
  without_internet_visibility: string = "N"
  without_language_detection: string = "N"
  without_outbound_http: string = "N"
  host_name: string = "localhost"
  site_name: &string = "localhost"
  url_to_home: string = "http://localhost"
  self_url: string = http://localhost/yacs/articles...on=page-de-test (ou "http://localhost/yacs/articles/view.php/10/page-de-test")
  url_to_root_parameter: &string = "/yacs/"
  self_script: string = "/yacs/articles/view.php?id=10&action=page-de-test" (ou "/yacs/articles/view.php/10/page-de-test")
  script_url: string = "/yacs/articles/view.php" (ou "/yacs/articles/view.php")
  charset: string = "utf-8"
  connection: object(mysqli) =
        affected_rows: undefined = NULL
        client_info: undefined = NULL
        client_version: undefined = NULL
        connect_errno: undefined = NULL
        connect_error: undefined = NULL
        errno: undefined = NULL
        error: undefined = NULL
        field_count: undefined = NULL
        host_info: undefined = NULL
        info: undefined = NULL
        insert_id: undefined = NULL
        server_info: undefined = NULL
        server_version: undefined = NULL
        sqlstate: undefined = NULL
        protocol_version: undefined = NULL
        thread_id: undefined = NULL
        warning_count: undefined = NULL
  users_connection: &object(mysqli) =
  database_is_utf8: bool = FALSE
  file_maximum_size: string = "2 M"
  users_authenticator: string = ""
  users_maximum_managed_sections: string = "1"
  users_overlay: string = ""
  users_with_avatars: string = "N"
  users_with_anonymous_comments: string = "Y"
  users_with_approved_members: string = "N"
  users_with_auto_publish: string = "N"
  users_with_email_display: string = "N"
  users_with_email_validation: string = "N"
  users_with_permanent_authentication: string = "Y"
  users_without_archiving: string = "N"
  users_without_file_overloads: string = "Y"
  users_without_login_box: string = "N"
  users_without_login_welcome: string = "Y"
  users_without_private_pages: string = "N"
  users_without_registration: string = "N"
  users_without_robot_check: string = "N"
  users_without_self_deletion: string = "N"
  users_without_submission: string = "N"
  users_without_teasers: string = "N"
  users_without_uploads: string = "N"
  root_articles_layout: string = "daily"