Posted by llll Mon 5th Mar 2007 01:53 - Syntax is PHP - 71 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers
PHP parser reported the following syntax error in this post:
Parse error: syntax error, unexpected '?' in post on line 8
  1. // No options are selected, so show the list of users.
  2.             $users = mysql_query("SELECT * FROM " . table_users . "");
  3.             $userlist = array();
  4.            
  5.           while ($rows = mysql_fetch_array ($users, MYSQL_ASSOC)) array_push ($userlist, $rows);
  6.             $main_smarty->assign('userlist', $userlist);
  7.            
  8.             $main_smarty->assign('Avatar', get_avatar('small', "", ????->user_login, ""));
  9.            
  10.             // breadcrumbs
  11.                 $navwhere['text1'] = $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel');
  12.                 $navwhere['link1'] = getmyurl('admin', '');
  13.                 $navwhere['text2'] = $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel_1');
  14.                 $navwhere['link2'] = my_pligg_base . "/admin_users.php";
  15.                 $main_smarty->assign('navbar_where', $navwhere);
  16.                 $main_smarty->assign('posttitle', " / " . $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel'));
  17.             // breadcrumbs
  18.            
  19.             define('pagename', 'admin_users');
  20.         $main_smarty->assign('pagename', pagename);
  21.  
  22.             $main_smarty->assign('tpl_center', $the_template . '/admin_templates/user_listall_center');
  23.             $main_smarty->display($the_template . '/pligg.tpl');

PermaLink to this entry https://pastebin.co.uk/11410
Posted by llll Mon 5th Mar 2007 01:53 - Syntax is PHP - 71 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers

 

Comments: 0