include('inc/header.php'); $navbar[1]=array('name'=>'Profiles','href'=>$servername.'profiles'); if(!empty($id)){ $navbar[2]=array('name'=>$_GET['title']); } $user->Nav_Bar($navbar); echo '
'; $table='reg_users'; if(!empty($_POST['formID']) && $_POST['formID']==$table && !empty($_POST[$table]['q']) ){ if(!empty($_POST[$table]['q']))$q=$_POST[$table]['q']; else if(!empty($_GET['q']))$q=$_GET['q']; $q=trim(stripslashes($q)); $q=str_replace("'",'"',$q); $search_in_array=array('alias','email'); $search=new search($q,$search_in_array);; $where_search=$search->build_query_search(); } if(@$_GET['sub']!='search' && empty($id)){ $reg_users->Get_Users(); } if(!empty($id)){ $reg_users->Get_User($id); } //if((empty($_POST[$table]['q']) || @$wholequery==0) && empty($id)){ if(@$_GET['sub']=='search'){ $form=new form($table,'Search Profiles'); $form->open(); $form->text('q','Search by keyword',1); $form->submit('Search'); $form->close(); } include('inc/footer.php'); ?>