- 1
- 2
- 3
- 4
//выяснение адреса сайта
define( "SITE_URL", "http://" . str_replace( "-", "-", preg_replace('#^(.*)/[^/]*#', '\\1', $_SERVER['HTTP_HOST']).'/admin/' ) );
define( "SITE_EDIT_URL", str_replace( "-", "-", preg_replace('#^(.*)/[^/]*#', '\\1', $_SERVER['HTTP_HOST']) ) ); //.$_SERVER['REQUEST_URI'])."/" ) );
define( "SITE_EDIT_URL_HTTP", "http://" . str_replace( "-", "-", preg_replace('#^(.*)/[^/]*#', '\\1', $_SERVER['HTTP_HOST'])."/" ) ); //.$_SERVER['REQUEST_URI'])."/" ) );
unfunk 27.04.2010 13:21 # 0
guest 27.04.2010 14:13 # 0
paranoid 27.04.2010 14:25 # +1
guest 27.04.2010 14:30 # +2
guest 27.04.2010 14:52 # −8
С++ 27.04.2010 15:23 # −2
guest 27.04.2010 16:57 # +3
Vasiliy 27.04.2010 16:25 # 0
KoBudHbIu_nemyx 25.08.2021 17:57 # 0