Announcement

Collapse
No announcement yet.

Can't link to other apps from a Blank PHP that have security enabled

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

  • Can't link to other apps from a Blank PHP that have security enabled

    I have a blank app with html to display a sort of dashboard in the menu app with icons that are linked to apps in the tree menu. Some of the links work but not on apps that have security enabled. I removed the absolute path from those links and I still get unauthorized user. I'm using a simple <a href='../app_name/app_name.php'>. Is there some other way to make a link?

  • #2
    If you have security enabled you need to 'unlock' these applications by using a scriptcase macro. Or disable the check during test which you can do in the preferences.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      I don't quite understand your response. Wouldn't that defeat the purpose of security and allow any user to access the apps by link? Also, where is preferences? There's settings and properties. What is so special about the menu links that allow them to link to apps without security issues?

      Comment


      • #4
        Are you talking about this?
        Code:
         if (is_file($path_apls . $this->tab_grupo[0] . "report_tickets_by_operator/report_tickets_by_operator_ini.txt")) 
        { 
        $sc_teste_seg = file($path_apls . $this->tab_grupo[0] . "report_tickets_by_operator/report_tickets_by_operator_ini.txt"); 
          if ((!isset($sc_teste_seg[3]) || trim($sc_teste_seg[3]) == "NAO") || (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N"))  
          { 
           if (!isset($_SESSION['scriptcase']['sc_apl_seg']['report_tickets_by_operator'])) 
          { 
           $_SESSION['scriptcase']['sc_apl_seg']['report_tickets_by_operator'] = "on"; 
            } 
          } 
           if (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N")  
          {  
           $_SESSION['scriptcase']['sc_apl_seg']['report_tickets_by_operator'] = "on"; 
             }  
         }

        Comment


        • #5
          If you are using security then all apps containing security cannot be run stand-alone. From the development point of view you make some changes, generate and run will give the same security error message. For testing purpose only you can disable this behaviour. Then you will be able to run this app from the ide environment. If you have a blank app and start running and you haven't take care of the security then you will have this error. So if you have generated a security module you need to start from there every time you want to test or set the switch. Options -> MyScriptcase -> security resources.
          Albert Drent
          aducom software netherlands
          scriptcase partner, reseller, support and (turn-key) development
          www.scriptcase.eu / www.scriptcase.nl

          Comment


          • #6
            Thanks, I get it now. I played with the macros but decided to go another route since there are different versions of certain apps per user group so links won't work anyway.

            Comment

            Working...
            X