Parcourir la source

只允许内网登录后台、APP登录使用

q il y a 1 an
Parent
commit
89aa357e25
2 fichiers modifiés avec 17 ajouts et 10 suppressions
  1. 7 0
      index.php
  2. 10 10
      webmain/flow/page/rock_page_meeting.php

+ 7 - 0
index.php

@@ -28,6 +28,13 @@ if($_uurl != ''){
 	$d			= $rock->jm->gettoken('d');
 	$a			= $rock->jm->gettoken('a', 'default');
 }
+
+// 只允许内网登录后台、APP登录使用
+$domain = $_SERVER['HTTP_HOST'];
+$we = $_REQUEST['d'];
+if ($we != 'we' && $domain != 'n.zq.oa.nxjiewei.com:8011' && $domain != 'oa.test') return;
+
+
 $ajaxbool	= $rock->jm->gettoken('ajaxbool', 'false');
 $mode		= $rock->get('m', $m);
 if(!$config['install'] && $mode != 'install')$rock->location('?m=install');

Fichier diff supprimé car celui-ci est trop grand
+ 10 - 10
webmain/flow/page/rock_page_meeting.php