WALL4PHP

From Tera-WURFL

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
WALL4PHP is the PHP version of the [http://wurfl.sourceforge.net/java/wall.php WURFL WALL Library] by Luca Passani.  It was written by Kaspars Foigts and was originally maintained on the [http://wall.laacz.lv/ WALL4PHP website].
WALL4PHP is the PHP version of the [http://wurfl.sourceforge.net/java/wall.php WURFL WALL Library] by Luca Passani.  It was written by Kaspars Foigts and was originally maintained on the [http://wall.laacz.lv/ WALL4PHP website].
-
In order to increase compatibility with Tera-WURFL, an updated version of the library is maintained here at the Tera-WURFL site.  You can also download the current development code from the [http://github.com/kamermans/WALL4PHP-by-Tera-WURFL WALL4PHP by Tera-WURFL Github repository].
+
In order to increase compatibility with Tera-WURFL, an updated version of the library is maintained here at the Tera-WURFL site.  You can also download the current <span class="plainlinks">[http://www.capsiplexreview.info/ <span style="color:#000000;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">capsiplex</span>] development code from the [http://github.com/kamermans/WALL4PHP-by-Tera-WURFL WALL4PHP by Tera-WURFL Github repository].
__TOC__
__TOC__
===Download===
===Download===
Line 7: Line 7:
===Installation (Standard Tera-WURFL)===
===Installation (Standard Tera-WURFL)===
-
After you download and extract the WALL4PHP library, you must edit [b]wall_prepend.php[/b] (excerpt shown below).  On line 28, you need to set the location of your Tera-WURFL installation.
+
After you download and extract the <span class="plainlinks">[http://www.herbalweightlossaid.com/ <span style="color:#000000;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">slimming pills</span>] WALL4PHP library, you must edit [b]wall_prepend.php[/b] (excerpt shown below).  On line 28, you need to <span class="plainlinks">[http://proactolpluspills.com/ <span style="color:#000000;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">proactol plus</span>] set the location of your Tera-WURFL installation.
<geshi lang=php lines=1>
<geshi lang=php lines=1>
Line 51: Line 51:
===Installation (Remote Webservice)===
===Installation (Remote Webservice)===
-
After you download and extract the WALL4PHP library, you must edit '''wall_prepend.php''' (excerpt shown below).<br/>
+
 
-
You can either edit line 33 and provide the location of your '''TeraWurflRemoteClient.php''' file, or you can just copy that file and place it in the WALL4PHP directory.<br/>
+
After you download and <span class="plainlinks">[http://www.hghadvancedreview.info/ <span style="color:#000000;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">hgh advanced supplement</span>] extract the WALL4PHP library, you <span class="plainlinks">[http://www.performer5pills.info/ <span style="color:#000000;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">semenax</span>] must edit '''wall_prepend.php''' (excerpt shown below).<br/>
 +
You can either edit line 33 and provide the <span class="plainlinks">[http://buyphentermine.herbalweightlossaid.com/ <span style="color:#000000;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Phen375</span>] location of your '''TeraWurflRemoteClient.php''' file, or you can just copy that <span class="plainlinks">[http://www.clearskinmaxreview.info/ <span style="color:#000000;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">acne skin products</span>] file and <span class="plainlinks">[http://weightlossproductreviews.info/ <span style="color:#000000;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">slimming reviews</span>] place it in the WALL4PHP directory.<br/>
Line 15: Set '''TERA_WURFL_VERSION''' to '''webservice''' (the default is '''2''').<br/>
Line 15: Set '''TERA_WURFL_VERSION''' to '''webservice''' (the default is '''2''').<br/>
-
Line 17: Set '''TERA_WURFL_WEBSERVICE_URL''' to the URL of your Tera-WURFL installation's '''webservice.php'''
+
Line 17: Set '''TERA_WURFL_WEBSERVICE_URL''' to the URL of <span class="plainlinks">[http://www.teethwhitenerguide.com/ <span style="color:#000000;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">teeth whitener reviews</span>] your Tera-WURFL installation's '''webservice.php'''
<geshi lang=php lines=1>
<geshi lang=php lines=1>
<?php
<?php
Line 97: Line 98:
===Required Capabilities===
===Required Capabilities===
-
WALL4PHP requires many capabilities in order to function properly.  If you are using the '''CAPABILITY_FILTER''' or the [[WURFL Customizer]] in order to limit the capabilities that are included in your installation, you will need to include the following capabilities that are used by WALL4PHP.  The capabilities are shown in '''CAPABILITY_FILTER''' format, so you can copy this code snippet directly into your '''TeraWurflConfig.php''' if you are using this feature.
+
 
 +
WALL4PHP requires many capabilities in <span class="plainlinks">[http://www.meratolreview.org/ <span style="color:#000000;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">meratol</span>] order to function properly.  If you are using the '''CAPABILITY_FILTER''' or the [[WURFL Customizer]] in order to limit the <span class="plainlinks">[http://crystalskincare.com/ <span style="color:#000000;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">skin care products</span>] capabilities that are included in your installation, you will need to include the following capabilities that are used by WALL4PHP.  The <span class="plainlinks">[http://www.phen375reviewed.info/ <span style="color:#000000;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">phen375 review</span>] capabilities are shown in '''CAPABILITY_FILTER''' format, so you can <span class="plainlinks">[http://www.hoodiapill.info/ <span style="color:#000000;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">unique hoodia diet</span>] copy this code snippet directly into your '''TeraWurflConfig.php''' if you are using this feature.
<geshi lang=php lines=0>
<geshi lang=php lines=0>
public static $CAPABILITY_FILTER = array(
public static $CAPABILITY_FILTER = array(

Revision as of 13:42, 21 December 2011

WALL4PHP is the PHP version of the WURFL WALL Library by Luca Passani. It was written by Kaspars Foigts and was originally maintained on the WALL4PHP website.

In order to increase compatibility with Tera-WURFL, an updated version of the library is maintained here at the Tera-WURFL site. You can also download the current capsiplex development code from the WALL4PHP by Tera-WURFL Github repository.

Contents

Download

You can download the updated WALL4PHP library from the Tera-WURFL Downloads page.

Installation (Standard Tera-WURFL)

After you download and extract the slimming pills WALL4PHP library, you must edit [b]wall_prepend.php[/b] (excerpt shown below). On line 28, you need to proactol plus set the location of your Tera-WURFL installation.

  1. <?php
  2.  
  3. if (!defined('WALL_INCLUDED')) {
  4.  
  5. # We explicitly tell wurfl_class to use cache.php.
  6. # From PHP_Tools by Andrea.
  7. # WARNING: This fails with:
  8. # Notice: Constant LOG_LEVEL already defined in [..path..]/wurfl/wurfl_class.php on line 89
  9. ### define('LOG_LEVEL', 0);
  10.  
  11. # Shall we use classic PHP Tools or Tera WURFL?
  12. define('WALL_USE_TERA_WURFL', true);
  13. # For Tera-WURFL 1.x use '1', for 2.x use '2'
  14. # For the Tera-WURFL Remote Webservice, use 'webservice'
  15. define('TERA_WURFL_VERSION', 2);
  16. # If you are using the Tera-WURFL Remote Webservice, set this to the URL of the webservice
  17. define('TERA_WURFL_WEBSERVICE_URL','http://localhost/Tera-Wurfl/webservice.php');
  18.  
  19. # Configuration of PHP Tools or Tera WURFL by Steve Kamerman
  20. if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
  21. switch(TERA_WURFL_VERSION){
  22. case 1:
  23. require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
  24. break;
  25. case 2:
  26. // For Tera-WURFL 2.x we just need to load the Tera-WURFL class
  27. // TODO: Set this to the location of your TeraWurfl.php file.
  28. require_once(dirname(__FILE__) . '../../Tera-WURFL/TeraWurfl.php');
  29. break;
  30. case 'webservice':
  31. // For the Tera-WURFL 2.x Remote Webservice we just need to load the remote client
  32. // TODO: Set this to the location of your TeraWurflRemoteClient.php file.
  33. require_once(dirname(__FILE__) . '/TeraWurflRemoteClient.php');
  34. break;
  35. }
  36. } else {
  37. require_once(dirname(__FILE__) . '/wurfl/wurfl_config.php');
  38. }

Installation (Remote Webservice)

After you download and hgh advanced supplement extract the WALL4PHP library, you semenax must edit wall_prepend.php (excerpt shown below).
You can either edit line 33 and provide the Phen375 location of your TeraWurflRemoteClient.php file, or you can just copy that acne skin products file and slimming reviews place it in the WALL4PHP directory.
Line 15: Set TERA_WURFL_VERSION to webservice (the default is 2).
Line 17: Set TERA_WURFL_WEBSERVICE_URL to the URL of teeth whitener reviews your Tera-WURFL installation's webservice.php

  1. <?php
  2.  
  3. if (!defined('WALL_INCLUDED')) {
  4.  
  5. # We explicitly tell wurfl_class to use cache.php.
  6. # From PHP_Tools by Andrea.
  7. # WARNING: This fails with:
  8. # Notice: Constant LOG_LEVEL already defined in [..path..]/wurfl/wurfl_class.php on line 89
  9. ### define('LOG_LEVEL', 0);
  10.  
  11. # Shall we use classic PHP Tools or Tera WURFL?
  12. define('WALL_USE_TERA_WURFL', true);
  13. # For Tera-WURFL 1.x use '1', for 2.x use '2'
  14. # For the Tera-WURFL Remote Webservice, use 'webservice'
  15. define('TERA_WURFL_VERSION', 'webservice');
  16. # If you are using the Tera-WURFL Remote Webservice, set this to the URL of the webservice
  17. define('TERA_WURFL_WEBSERVICE_URL','http://localhost/Tera-Wurfl/webservice.php');
  18.  
  19. # Configuration of PHP Tools or Tera WURFL by Steve Kamerman
  20. if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
  21. switch(TERA_WURFL_VERSION){
  22. case 1:
  23. require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
  24. break;
  25. case 2:
  26. // For Tera-WURFL 2.x we just need to load the Tera-WURFL class
  27. // TODO: Set this to the location of your TeraWurfl.php file.
  28. require_once(dirname(__FILE__) . '../../Tera-WURFL/TeraWurfl.php');
  29. break;
  30. case 'webservice':
  31. // For the Tera-WURFL 2.x Remote Webservice we just need to load the remote client
  32. // TODO: Set this to the location of your TeraWurflRemoteClient.php file.
  33. require_once(dirname(__FILE__) . '/TeraWurflRemoteClient.php');
  34. break;
  35. }
  36. } else {
  37. require_once(dirname(__FILE__) . '/wurfl/wurfl_config.php');
  38. }

Required Capabilities

WALL4PHP requires many capabilities in meratol order to function properly. If you are using the CAPABILITY_FILTER or the WURFL Customizer in order to limit the skin care products capabilities that are included in your installation, you will need to include the following capabilities that are used by WALL4PHP. The phen375 review capabilities are shown in CAPABILITY_FILTER format, so you can unique hoodia diet copy this code snippet directly into your TeraWurflConfig.php if you are using this feature.

public static $CAPABILITY_FILTER = array(
        "basic_authentication_support",
        "built_in_back_button_support",
        "card_title_support",
        "chtml_table_support",
        "ctml_make_phone_call_string",
        "flash_lite",
        "gif",
        "imode_region",
        "menu_with_select_element_recommended",
        "opwv_wml_extensions_support",
        "opwv_xhtml_extensions_support",
        "preferred_markup",
        "resolution_width",
        "softkey_support",
        "wbmp",
        "wml_1_3",
        "wml_make_phone_call_string",
        "xhtml_document_title_support",
        "xhtml_format_as_attribute",
        "xhtml_format_as_css_property",
        "xhtml_make_phone_call_string",
        "xhtml_marquee_as_css_property",
        "xhtmlmp_preferred_mime_type",
        "xhtml_nowrap_mode",
        "xhtml_preferred_charset",
        "xhtml_readable_background_color1",
        "xhtml_readable_background_color2",
        "xhtml_supports_css_cell_table_coloring",
        "xhtml_supports_table_for_layout",
        "xhtml_table_support"
);

Personal tools
Namespaces
Variants
Actions
WURFL DBAPI
Toolbox