Bladeren bron

In-app version. Removed unused JS references.

Iñigo Valentin 6 jaren geleden
bovenliggende
commit
6dd4729ed4

+ 2 - 0
application/config.php

@@ -2,6 +2,8 @@
 
     require_once(__DIR__ . "/helper/net.php");
 
+    $app_version = "2";
+
     $root = get_protocol() . $_SERVER["HTTP_HOST"] . "/";
 
     $base_dir = $_SERVER["DOCUMENT_ROOT"] . "/";

+ 0 - 2
application/view/catalog.php

@@ -9,8 +9,6 @@
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>catalog.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>filters.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>

+ 0 - 2
application/view/fusion.php

@@ -9,8 +9,6 @@
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>fusion.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>filters.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>

+ 0 - 2
application/view/guild.php

@@ -13,8 +13,6 @@
         <!-- CSS files -->
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>guild.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>

+ 0 - 2
application/view/help.php

@@ -8,8 +8,6 @@
         <!-- CSS files -->
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>help.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>

+ 0 - 2
application/view/home.php

@@ -11,8 +11,6 @@
         <!-- CSS files -->
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>home.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>

+ 5 - 2
application/view/inc/footer.php

@@ -2,13 +2,16 @@
     <table id='footer_table'>
         <tr>
             <td id='footer_left'>
-                Developed by <a href='https://inigovalentin.com'>I&ntilde;igo Valentin</a>.
+<?php
+                global $app_version;
+?>
+                Version <?=$app_version?>. Developed by <a href='https://inigovalentin.com'>I&ntilde;igo Valentin</a>.
                 <br/>
                 <br/>
                 Source code available on <a href='https://github.com'>Github</a> under the GPLv3.
             </td>
             <td id='footer_right'>
-                Neither I nor this tool are  affiliated with or endorsed by <a href='http://com2us.com/'>Com2uS</a> in any way. The Summoners War logo and the monster images are property of their respective owners (Com2US, probably). Monsters images and info are parsed from <a href='https://swarfarm.com'>https://swarfarm.com</a>.
+                Neither I nor this tool are affiliated with or endorsed by <a href='http://com2us.com/'>Com2uS</a> in any way. The Summoners War logo and the monster images are property of their respective owners (Com2US, probably). Monsters images and info are parsed from <a href='https://swarfarm.com'>https://swarfarm.com</a>.
             </td>
         </tr>
     </table>

+ 0 - 2
application/view/landing.php

@@ -8,8 +8,6 @@
         <!-- CSS files -->
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>landing.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>

+ 0 - 2
application/view/monster.php

@@ -8,8 +8,6 @@
         <!-- CSS files -->
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>monster.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>

+ 0 - 2
application/view/monster_info.php

@@ -11,8 +11,6 @@
         <!-- CSS files -->
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>monster_info.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>

+ 0 - 2
application/view/monsters.php

@@ -12,8 +12,6 @@
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>monsters.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>filters.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>

+ 0 - 2
application/view/report.php

@@ -14,8 +14,6 @@
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>report.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>filters.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>

+ 0 - 2
application/view/report_runecraft.php

@@ -12,8 +12,6 @@
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>report_runecraft.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>filters.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>

+ 0 - 2
application/view/report_runeupgrade.php

@@ -13,8 +13,6 @@
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>report_runeupgrade.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>filters.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>

+ 0 - 2
application/view/report_skillup.php

@@ -9,8 +9,6 @@
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>report_skillup.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>filters.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>

+ 0 - 2
application/view/runes.php

@@ -9,8 +9,6 @@
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>runes.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>filters.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>

+ 0 - 2
application/view/runs.php

@@ -14,8 +14,6 @@
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>runs.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>filters.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>

+ 0 - 3
application/view/teams.php

@@ -18,9 +18,6 @@
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>teams.css'/>
         <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>filters.css'/>
-        <!-- Script files -->
-        <script src="<?=$path["js"]?>ui.js"></script>
-        <script src="<?=$path["js"]?>teams.js"></script>
         <!-- Meta tags -->
         <link rel='canonical' href='<?=$page->canonical?>'/>
         <link rel='author' href='<?=$page->author?>'/>