File tree Expand file tree Collapse file tree 2 files changed +16
-16
lines changed
Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -306,13 +306,13 @@ function session(): Session
306306function url (string $ path = null ): string
307307{
308308
309- if (strpos ($ _SERVER ['HTTP_HOST ' ], "localhost " ) == "localhost " ? false :true ){
310-
311- if ($ path ){
312- return CONF_URL_TEST . "/ " . ($ path [0 ] == "/ " ? mb_substr ($ path , 1 ) : $ path );
313- }
314- return CONF_URL_TEST ;
315- }
309+ // if(strpos($_SERVER['HTTP_HOST'], "localhost") == "localhost" ? false:true){
310+ //
311+ // if($path){
312+ // return CONF_URL_TEST . "/" . ($path[0] == "/" ? mb_substr($path, 1) : $path);
313+ // }
314+ // return CONF_URL_TEST;
315+ // }
316316
317317 if ($ path ){
318318
@@ -377,13 +377,13 @@ function user(): ?User
377377 */
378378function theme (string $ path = null , string $ theme = CONF_VIEW_THEME ): string
379379{
380- if (strpos ($ _SERVER ['HTTP_HOST ' ], "localhost " ) == "localhost " ? false :true ){
381- if ($ path ){
382- return CONF_URL_TEST . "/themes/ {$ theme }/ " . ($ path [0 ] == "/ " ? mb_substr ($ path , 1 ) : $ path );
383-
384- }
385- return CONF_URL_TEST . "/themes/ {$ theme }/ " ;
386- }
380+ // if(strpos($_SERVER['HTTP_HOST'], "localhost") == "localhost" ? false:true){
381+ // if($path){
382+ // return CONF_URL_TEST . "/themes/{$theme}/" . ($path[0] == "/" ? mb_substr($path, 1) : $path);
383+ //
384+ // }
385+ // return CONF_URL_TEST . "/themes/{$theme}/";
386+ // }
387387
388388 if ($ path ){
389389 return CONF_URL_BASE . "/themes/ {$ theme }/ " . ($ path [0 ] == "/ " ? mb_substr ($ path , 1 ) : $ path );
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ class Connect
88{
99 /** --------- DATA LOCALHOST ----------*/
1010 private const HOST = "localhost " ;
11- private const USER = "root " ;
11+ private const USER = "u994951933_menudig " ;
1212 private const DBNAME = "u994951933_menudig " ;
13- private const PASSWORD = "" ;
13+ private const PASSWORD = "@OdIW9?+W#9 " ;
1414
1515 private const OPTIONS = [
1616 PDO ::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8 " ,
You can’t perform that action at this time.
0 commit comments