We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32982
    • 674 Posts
    now i have problems loggin into the manager
    clear session,cookis....
    and login ok redirect to login page
    any sugestions?
      Jabiertxof (formerly XYZVISUAL)
      My bussines: http://marker.es
      https://www.youtube.com/user/jabiertxof/videos
      • 32982
      • 674 Posts
      the link showing is
      /manager/index.php?a=1&f=scripter
      after reload login page
        Jabiertxof (formerly XYZVISUAL)
        My bussines: http://marker.es
        https://www.youtube.com/user/jabiertxof/videos
        • 32982
        • 674 Posts
        im working whith a plugin who deletes the variable session but i delete tis (losting all work)realy the only thing i want is to tell a snippet or plugin im realy logged into the manager
          Jabiertxof (formerly XYZVISUAL)
          My bussines: http://marker.es
          https://www.youtube.com/user/jabiertxof/videos
          • 32982
          • 674 Posts
          i solve the problem deleting the end whit the code of the plugin in site.cache.idx.php
          hi
            Jabiertxof (formerly XYZVISUAL)
            My bussines: http://marker.es
            https://www.youtube.com/user/jabiertxof/videos
            • 32241
            • 1,495 Posts
            Ehmm...

            Glad to know that you solve your problem.

            Btw, here is the function that I made to check manager permission on specific document.

            // API Addition to check manager doc groups with current docs
            function isMemberOfMgrGroup(){
            	global $modx;
            	// Fetch current document groups
            	$sql = '';
            	$result = $modx->db->select('document_group', $modx->getFullTableName("document_groups"), 'document = '.$modx->documentIdentifier);
            	$counter = 0;
            	while($tempResult = mysql_fetch_array($result)) {
            		$docGroups[$counter] = $tempResult['document_group'];
            		$counter++;
            	}
            	if(!is_array($docGroups)) return true;
            	// Fetch current manager groups
            	$mgrGroups = $_SESSION['mgrDocgroups'];
            	if(!is_array($mgrGroups)) return false;
            	// Check doc groups and mgr groups
            	if(!is_array($docGroups)) return false;
            	foreach($docGroups as $k=>$v)
            		if(in_array(trim($v),$mgrGroups)) return true;
            	return false;
            }
            


            Hope it will ease your development process.

            Sicnerely,
              Wendy Novianto
              [font=Verdana]PT DJAMOER Technology Media
              [font=Verdana]Xituz Media
              • 32982
              • 674 Posts
              thanks for the code i thik is very important to me.
              the code (in developement) i do is
              $e = &$modx->Event;
              switch ($e->name) {
              case "OnWebPagePrerender":
              if(!isset($_SESSION[\’mrgValidated\’])==1){
              $html = "dfhsdgjdfjdfjkdfhkhfdkdghkdhkhkdghkdghkghkgkgfkfgkgfj,fg,gfhgfmgf";
              $content = $modx->documentOutput;
              $new .= $html;
              $new .= $content;
              $modx->documentOutput = $new;
              }
              case "OnManagerLogout":
              session_unset();
              session_destroy();
              break;
              default :
              return; // stop here.
              break;
              }
              i dont know if could be useful
              but i put
                Jabiertxof (formerly XYZVISUAL)
                My bussines: http://marker.es
                https://www.youtube.com/user/jabiertxof/videos