Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // ez a fajl a medres browser-hez van.
- mb_http_output('UTF-8');
- if (count(array_intersect(array_keys($_REQUEST), array("action", "password", "format"))) == 0
- || $_REQUEST["password"] != "ultraregularpassword"
- || $_REQUEST["action"] != "load_config"
- || $_SERVER['HTTP_USER_AGENT'] != "MedResbrowser v1.0 (Mdrsbrwsr 1.0; Windows NT 6.3; .NET CLR 4.0.30319; rv:1.0) like Gecko sajtospiritos") {
- header("HTTP/1.0 404 Not Found");
- return;
- }
- header('Content-type: text/xml');
- // fontos, h a <?xml elott ne legyen semmilyen mas karakter mert kulonben a bongeszo
- // az ervenytelen konfiguracio miatt osszeomlik.
- echo '<?xml version="1.0" encoding="utf-8" ?>
- <objects xmlns="http://www.springframework.net">
- <description>Hálózat adminisztrátor által állítható böngésző specifikus beállítások.</description>
- <object id="fallbackUrl" type="string">
- <constructor-arg index="0" value="http://portal.medres.hu/" />
- </object>
- <object id="adminConfig" type="MedresBrowser.Common.ConfigObject, MedresBrowser" singleton="true">
- <property name="UrlRules">
- <list element-type="string">
- <value>portal\.medres\.hu</value>
- <value>medres\.hu</value>
- <value>www\.medres\.hu</value>
- <value>localhost</value>
- </list>
- </property>
- <property name="FallbackUrl" value="http://portal.medres.hu" />
- <property name="FileTypeAssociations">
- <dictionary key-type="string" value-type="string">
- <entry key="application/pdf" value="Adobe Reader" />
- <entry key="application/zip" value="7-zip" />
- <entry key="application/vnd.openxmlformats-officedocument.wordprocessingml.document" value="Word 2013" />
- </dictionary>
- </property>
- <property name="FallbackTypeAssociations">
- <dictionary key-type="string" value-type="string">
- <entry key="application/pdf" value="C:\" />
- <entry key="application/zip" value="C:\" />
- <entry key="application/vnd.openxmlformats-officedocument.wordprocessingml.document" value="c:\Program Files\Microsoft Office\Office15\WINWORD.exe" />
- </dictionary>
- </property>
- </object>
- </objects>
- ';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement