Announcement

Collapse
No announcement yet.

'{' at auto batch generation

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • '{' at auto batch generation

    Hello,

    I experienced error, like this:
    Parse error: syntax error, unexpected '{' in /home/mitjamys/public_html/scriptcase/app/MojaPisarna_2016/form_KD_atributi_1/sc_logged.php on line 10

    I did app with batch express generation tool. I did not change anything. What is wrong?

    Please help me out. It is quite utgent!

  • #2
    This is sc_logged.php:

    sc_logged.php
    0| <?php
    1|
    //__NM____NM__NFUNCTION__NM__//
    2|
    3|
    function sc_logged($user, $ip = '')
    4| {
    5|
    $str_sql = "SELECT date_login, ip FROM sec_logged WHERE login = '". $user ."' AND sc_session <> '_SC_FAIL_SC_'";
    6|
    7|
    sc_select(data, $str_sql);
    8|
    9| if({
    data} === FALSE || !isset($data->fields[0]))
    10| {
    11|
    $ip = ($ip == '') ? $_SERVER['REMOTE_ADDR'] : $ip;
    12|
    sc_logged_in($user, $ip);
    13| return
    true;
    14| }
    15| else
    16| {
    17|
    sc_reset_apl_conf("app_logged");
    18|
    sc_apl_status("app_logged", 'on');
    19|
    sc_redir("app_logged", user=$user, 'modal');
    20| return
    false;
    21| }
    22| }
    23|

    Comment


    • #3
      Remove line 9 through 21 and test again. Then readd the lines 9,10,14,16,21 and retest then step by step readd the other lines and test.
      Or just comment lines out. I use that always for finding bugs...

      Comment

      Working...
      X