Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: QUICK CART
Forum PHP.pl > Forum > Gotowe rozwiązania > Systemy portalowe i CMS'y
toch18
Parse error: syntax error, unexpected T_VARIABLE in /customers/tpsprint.eu/tpsprint.eu/httpd.www/config/general.php on line 6


mam problem na serwerze www.one.com nie moge uruchomic stronki gdyz wyskakuje powyzszy błąd niestety nie wiem co zrobic sad.gif

jezeli ktos chce moge wystawic plik general - sklepik jest robiony na QUICK.CART
phpion
Cytat(toch18 @ 8.10.2008, 21:19:08 ) *
jezeli ktos chce moge wystawic plik general

No przydałoby się...
korek_a
syntax error, unexpected T_VARIABLE... znaczy tyle, co "Błąd składni, nieoczekiwana zmienna..."

czyli trzeba nam kodu ale zapewne jakiś brak średnika czy coś w kodzie
toch18
  1. <?php
  2. //error_reporting( E_ALL );
  3. unset( $config, $aMenuTypes, $aPhotoTypes, $lang, $aUser );
  4.  
  5. /*
  6. * Directories
  7. */
  8. $config['dir_core']     = 'core/';
  9. $config['dir_db']       = 'db/';
  10. $config['dir_libraries']= 'libraries/';
  11. $config['dir_lang']     = 'lang/';
  12. $config['dir_templates']= 'templates/';
  13. $config['dir_themes']   = $config['dir_templates'].'themes/';
  14. $config['dir_files']    = 'files/';
  15. $config['dir_plugins']  = 'plugins/';
  16.  
  17. $config['hidden_shows'] = false;
  18.  
  19. /*
  20. * If You want embed PHP code in template files
  21. * set this variable true but it is not recommended and
  22. * script will be slower
  23. */
  24. $config['embed_php'] = false;
  25.  
  26. /*
  27. * If true, then script will search db/*_products_ext.php file in
  28. * meta keywords, meta description and full description.
  29. * We dont recommend it if shopping cart have more then 1000 products
  30. */
  31. $config['search_products_description'] = false;
  32.  
  33. /*
  34. * Administrator login and password
  35. */
  36. $config['login'] = "admin";
  37. $config['pass'] = "admin";
  38.  
  39. /*
  40. * Default language
  41. */
  42. $config['default_lang'] = "en";
  43.  
  44. /*
  45. * If should be use wysiwyg editor or default
  46. */
  47. $config['wysiwyg'] = false;
  48.  
  49. /*
  50. * Leave code below!
  51. */
  52. $config['cookie_admin'] = defined( 'CUSTOMER_PAGE' ) ? null : 'A';
  53.  
  54. if( isset( $sLang ) && is_file( $config['dir_lang'].$sLang.'.php' ) && strlen( $sLang ) == 2 ){
  55.  setCookie( 'sLanguage'.$config['cookie_admin'], $sLang, time( ) + 86400 );
  56.  define( 'LANGUAGE', $sLang );
  57. }
  58. else{
  59.  if( !empty( $_COOKIE['sLanguage'.$config['cookie_admin']] ) && is_file( $config['dir_lang'].$_COOKIE['sLanguage'.$config['cookie_admin']].'.php' ) && strlen( $_COOKIE['sLanguage'.$config['cookie_admin']] ) == 2 )
  60.    define( 'LANGUAGE', $_COOKIE['sLanguage'.$config['cookie_admin']] );
  61.  else
  62.    define( 'LANGUAGE', $config['default_lang'] );
  63. }
  64.  
  65. $config['config']       = 'config/general.php';
  66. $config['config_lang']  = 'config/lang_'.LANGUAGE.'.php';
  67.  
  68. $config_db['pages']       = $config['dir_db'].LANGUAGE.'_pages.php';
  69. $config_db['pages_ext']   = $config['dir_db'].LANGUAGE.'_pages_ext.php';
  70. $config_db['pages_files'] = $config['dir_db'].LANGUAGE.'_pages_files.php';
  71.  
  72. $config_db['products']        = $config['dir_db'].LANGUAGE.'_products.php';
  73. $config_db['products_ext']    = $config['dir_db'].LANGUAGE.'_products_ext.php';
  74. $config_db['products_files']  = $config['dir_db'].LANGUAGE.'_products_files.php';
  75. $config_db['products_pages']  = $config['dir_db'].LANGUAGE.'_products_pages.php';
  76. $config_db['orders_temp']     = $config['dir_db'].'orders_temp.php';
  77. $config_db['orders']          = $config['dir_db'].'orders.php';
  78. $config_db['orders_products'] = $config['dir_db'].'orders_products.php';
  79. $config_db['orders_comments'] = $config['dir_db'].'orders_comments.php';
  80. $config_db['orders_status']   = $config['dir_db'].'orders_status.php';
  81. $config_db['payments']        = $config['dir_db'].LANGUAGE.'_payments.php';
  82. $config_db['carriers']        = $config['dir_db'].LANGUAGE.'_carriers.php';
  83. $config_db['carriers_payments']= $config['dir_db'].LANGUAGE.'_carriers_payments.php';
  84.  
  85. $config['language']    = LANGUAGE;
  86. $config['version']  = '3.0';
  87.  
  88. $config['pages_images_sizes'] = Array( 0 => 100, 1 => 200 );
  89. $config['max_dimension_of_image'] = 900;
  90.  
  91. define( 'DIR_CORE',       $config['dir_core'] );
  92. define( 'DIR_DB',         $config['dir_db'] );
  93. define( 'DIR_FILES',      $config['dir_files'] );
  94. define( 'DIR_LIBRARIES',  $config['dir_libraries'] );
  95. define( 'DIR_PLUGINS',    $config['dir_plugins'] );
  96. define( 'DIR_LANG',       $config['dir_lang'] );
  97. define( 'DIR_TEMPLATES',  $config['dir_templates'] );
  98. define( 'DIR_THEMES',     $config['dir_themes'] );
  99.  
  100. define( 'DB_PAGES',       $config_db['pages'] );
  101. define( 'DB_PAGES_EXT',   $config_db['pages_ext'] );
  102. define( 'DB_PAGES_FILES', $config_db['pages_files'] );
  103. define( 'DB_PRODUCTS',       $config_db['products'] );
  104. define( 'DB_PRODUCTS_EXT',   $config_db['products_ext'] );
  105. define( 'DB_PRODUCTS_FILES', $config_db['products_files'] );
  106. define( 'DB_PRODUCTS_PAGES', $config_db['products_pages'] );
  107. define( 'DB_ORDERS_TEMP', $config_db['orders_temp'] );
  108. define( 'DB_ORDERS', $config_db['orders'] );
  109. define( 'DB_ORDERS_PRODUCTS', $config_db['orders_products'] );
  110. define( 'DB_ORDERS_COMMENTS', $config_db['orders_comments'] );
  111. define( 'DB_ORDERS_STATUS', $config_db['orders_status'] );
  112. define( 'DB_PAYMENTS', $config_db['payments'] );
  113. define( 'DB_CARRIERS', $config_db['carriers'] );
  114. define( 'DB_CARRIERS_PAYMENTS', $config_db['carriers_payments'] );
  115.  
  116. define( 'DB_CONFIG',      $config['config'] );
  117. define( 'DB_CONFIG_LANG', $config['config_lang'] );
  118.  
  119. define( 'MAX_DIMENSION_OF_IMAGE', $config['max_dimension_of_image'] );
  120.  
  121. define( 'HIDDEN_SHOWS',   $config['hidden_shows'] );
  122. define( 'WYSIWYG',   $config['wysiwyg'] );
  123. define( 'VERSION',  $config['version'] );
  124. ?>
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.