diff --git a/chat.php b/chat.php index bb87e9c..a20d666 100644 --- a/chat.php +++ b/chat.php @@ -34,7 +34,6 @@ send_headers(); // initialize and load variables/configuration -$F=[];// Fonts $I=[];// Translations $L=[];// Languages $U=[];// This user data @@ -46,7 +45,6 @@ load_config(); if(!isSet($_REQUEST['session']) && isSet($_COOKIE[COOKIENAME])){ $_REQUEST['session']=$_COOKIE[COOKIENAME]; } -load_fonts(); load_lang(); check_db(); route(); @@ -316,7 +314,7 @@ function form($action, $do=''){ function form_target($target, $action, $do=''){ global $language; - return "
".hidden('lang', $language).hidden('nc', substr(time(), -6)).hidden('action', $action); + $form="".hidden('lang', $language).hidden('nc', substr(time(), -6)).hidden('action', $action); if(!empty($_REQUEST['session'])){ $form.=hidden('session', $_REQUEST['session']); } @@ -1826,7 +1824,7 @@ function send_help(){ } function send_profile($arg=''){ - global $F, $I, $L, $U, $db, $language; + global $I, $L, $U, $db, $language; print_start('profile'); echo form('profile', 'save')."

$I[profile]

$arg"; thr(); @@ -1867,6 +1865,7 @@ function send_profile($arg=''){ if($U['status']>=3){ echo "
$I[fontface]"; echo "