Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#34 SITE_URL is missing in constants

closed
JiM / aEGIS
None
5
2007-09-28
2007-08-28
Anonymous
No

hello
im fighting with my template javascript files paths because my demo site root is inside a subfolder.

is it possible to add a constant called something like SITE_URL
given by the user in config file
or
autodetected with something like this in index.php :

define('SITE_URL', $_SERVER['SERVER_NAME'].preg_replace("'".basename($_SERVER['PHP_SELF'])."'i","",$_SERVER['PHP_SELF']));

Discussion

  • JiM / aEGIS
    JiM / aEGIS
    2007-09-14

    Logged In: YES
    user_id=879481
    Originator: NO

    Please be more specific, what would you like to see inside SITE_URL ? As for me SITE_URL would be something like "www.mydomain.com/path_to_phpgraphy/", I've been in the need of a such variable but if you provide me more details, why not adding it.

    Regards, JiM.

     
  • JiM / aEGIS
    JiM / aEGIS
    2007-09-14

    • assigned_to: nobody --> jimpower
    • status: open --> pending
     
  • Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending --> closed