Added ProgOfTheDay to AdminArea (+Bugfix)
This commit is contained in:
parent
e7c7881afb
commit
2ebe660272
361
.idea/workspace.xml
generated
361
.idea/workspace.xml
generated
@ -63,56 +63,33 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="FileEditorManager">
|
<component name="FileEditorManager">
|
||||||
<leaf>
|
<leaf>
|
||||||
<file leaf-file-name="APIController.php" pinned="false" current="true" current-in-tab="true">
|
<file leaf-file-name="SeededRandom.php" pinned="false" current="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/controllers/APIController.php">
|
<entry file="file://$PROJECT_DIR$/www/protected/components/SeededRandom.php">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="23" column="21" selection-start="387" selection-end="387" vertical-scroll-proportion="0.14529915" vertical-offset="306" max-vertical-offset="1003">
|
<state line="40" column="5" selection-start="679" selection-end="679" vertical-scroll-proportion="-23.192308" vertical-offset="77" max-vertical-offset="799">
|
||||||
|
<folding>
|
||||||
|
<element signature="e#6#84#0" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="ProgramHelper.php" pinned="false" current="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/www/protected/components/ProgramHelper.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="52" column="73" selection-start="1202" selection-end="1202" vertical-scroll-proportion="-9.230769" vertical-offset="644" max-vertical-offset="1819">
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
</file>
|
</file>
|
||||||
<file leaf-file-name="MSController.php" pinned="false" current="false" current-in-tab="false">
|
<file leaf-file-name="admin.php" pinned="false" current="true" current-in-tab="true">
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/components/MSController.php">
|
<entry file="file://$PROJECT_DIR$/www/protected/views/msmain/admin.php">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="14" column="0" selection-start="322" selection-end="322" vertical-scroll-proportion="-9.153846" vertical-offset="0" max-vertical-offset="374">
|
<state line="57" column="34" selection-start="1152" selection-end="1152" vertical-scroll-proportion="0.3938224" vertical-offset="765" max-vertical-offset="2227">
|
||||||
<folding />
|
<folding>
|
||||||
</state>
|
<element signature="n#style#0;n#div#3;n#div#0;n#div#0;n#!!top" expanded="true" />
|
||||||
</provider>
|
</folding>
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="update.php" pinned="false" current="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/views/api/update.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="4" column="60" selection-start="130" selection-end="130" vertical-scroll-proportion="-2.6153846" vertical-offset="0" max-vertical-offset="170">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="main.php" pinned="false" current="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/config/main.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="79" column="42" selection-start="1895" selection-end="1895" vertical-scroll-proportion="-18.307692" vertical-offset="867" max-vertical-offset="2091">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="ProgramsController.php" pinned="false" current="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/controllers/ProgramsController.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="230" column="28" selection-start="5785" selection-end="5870" vertical-scroll-proportion="-7.4615383" vertical-offset="3716" max-vertical-offset="4301">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="ProgramUpdates.php" pinned="false" current="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/models/ProgramUpdates.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="6" column="25" selection-start="154" selection-end="159" vertical-scroll-proportion="-3.8846154" vertical-offset="1" max-vertical-offset="1853">
|
|
||||||
<folding />
|
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
@ -130,9 +107,6 @@
|
|||||||
<component name="IdeDocumentHistory">
|
<component name="IdeDocumentHistory">
|
||||||
<option name="changedFiles">
|
<option name="changedFiles">
|
||||||
<list>
|
<list>
|
||||||
<option value="$PROJECT_DIR$/www/protected/components/ProgramHelper.php" />
|
|
||||||
<option value="$PROJECT_DIR$/www/protected/components/widgets/views/fullProgPreview.php" />
|
|
||||||
<option value="$PROJECT_DIR$/www/protected/components/widgets/views/thumbnailProgPreview.php" />
|
|
||||||
<option value="$PROJECT_DIR$/www/protected/views/layouts/column2.php" />
|
<option value="$PROJECT_DIR$/www/protected/views/layouts/column2.php" />
|
||||||
<option value="$PROJECT_DIR$/www/protected/views/msmain/log.php" />
|
<option value="$PROJECT_DIR$/www/protected/views/msmain/log.php" />
|
||||||
<option value="$PROJECT_DIR$/www/protected/views/log/_ajaxMarkdownPreview.php" />
|
<option value="$PROJECT_DIR$/www/protected/views/log/_ajaxMarkdownPreview.php" />
|
||||||
@ -166,13 +140,11 @@
|
|||||||
<option value="$PROJECT_DIR$/www/protected/views/programs/_search.php" />
|
<option value="$PROJECT_DIR$/www/protected/views/programs/_search.php" />
|
||||||
<option value="$PROJECT_DIR$/www/protected/views/programs/index.php" />
|
<option value="$PROJECT_DIR$/www/protected/views/programs/index.php" />
|
||||||
<option value="$PROJECT_DIR$/www/protected/controllers/ProgramsController.php" />
|
<option value="$PROJECT_DIR$/www/protected/controllers/ProgramsController.php" />
|
||||||
<option value="$PROJECT_DIR$/www/css/styles.css" />
|
|
||||||
<option value="$PROJECT_DIR$/www/data/programs/.gitignore" />
|
<option value="$PROJECT_DIR$/www/data/programs/.gitignore" />
|
||||||
<option value="$PROJECT_DIR$/www/protected/models/Program.php" />
|
<option value="$PROJECT_DIR$/www/protected/models/Program.php" />
|
||||||
<option value="$PROJECT_DIR$/www/protected/models/ProgramUpdatesLog.php" />
|
<option value="$PROJECT_DIR$/www/protected/models/ProgramUpdatesLog.php" />
|
||||||
<option value="$PROJECT_DIR$/www/protected/views/programs/view.php" />
|
<option value="$PROJECT_DIR$/www/protected/views/programs/view.php" />
|
||||||
<option value="$PROJECT_DIR$/www/protected/controllers/ProgramUpdatesController.php" />
|
<option value="$PROJECT_DIR$/www/protected/controllers/ProgramUpdatesController.php" />
|
||||||
<option value="$PROJECT_DIR$/www/protected/views/msmain/admin.php" />
|
|
||||||
<option value="$PROJECT_DIR$/www/protected/views/programupdates/index.php" />
|
<option value="$PROJECT_DIR$/www/protected/views/programupdates/index.php" />
|
||||||
<option value="$PROJECT_DIR$/www/protected/models/ProgramUpdates.php" />
|
<option value="$PROJECT_DIR$/www/protected/models/ProgramUpdates.php" />
|
||||||
<option value="$PROJECT_DIR$/www/protected/views/programupdates/view.php" />
|
<option value="$PROJECT_DIR$/www/protected/views/programupdates/view.php" />
|
||||||
@ -181,6 +153,11 @@
|
|||||||
<option value="$PROJECT_DIR$/www/protected/views/api/update.php" />
|
<option value="$PROJECT_DIR$/www/protected/views/api/update.php" />
|
||||||
<option value="$PROJECT_DIR$/www/protected/config/main.php" />
|
<option value="$PROJECT_DIR$/www/protected/config/main.php" />
|
||||||
<option value="$PROJECT_DIR$/www/protected/controllers/APIController.php" />
|
<option value="$PROJECT_DIR$/www/protected/controllers/APIController.php" />
|
||||||
|
<option value="$PROJECT_DIR$/www/css/styles.css" />
|
||||||
|
<option value="$PROJECT_DIR$/www/protected/components/SeededRandom.php" />
|
||||||
|
<option value="$PROJECT_DIR$/www/protected/components/ProgramHelper.php" />
|
||||||
|
<option value="$PROJECT_DIR$/www/protected/views/msmain/index.php" />
|
||||||
|
<option value="$PROJECT_DIR$/www/protected/views/msmain/admin.php" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
@ -362,6 +339,10 @@
|
|||||||
<option name="myItemId" value="views" />
|
<option name="myItemId" value="views" />
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="programupdates" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
</PATH>
|
</PATH>
|
||||||
<PATH>
|
<PATH>
|
||||||
<PATH_ELEMENT>
|
<PATH_ELEMENT>
|
||||||
@ -384,10 +365,6 @@
|
|||||||
<option name="myItemId" value="views" />
|
<option name="myItemId" value="views" />
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
<PATH_ELEMENT>
|
|
||||||
<option name="myItemId" value="msmain" />
|
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
||||||
</PATH_ELEMENT>
|
|
||||||
</PATH>
|
</PATH>
|
||||||
<PATH>
|
<PATH>
|
||||||
<PATH_ELEMENT>
|
<PATH_ELEMENT>
|
||||||
@ -411,33 +388,7 @@
|
|||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
<PATH_ELEMENT>
|
<PATH_ELEMENT>
|
||||||
<option name="myItemId" value="layouts" />
|
<option name="myItemId" value="msmain" />
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
||||||
</PATH_ELEMENT>
|
|
||||||
</PATH>
|
|
||||||
<PATH>
|
|
||||||
<PATH_ELEMENT>
|
|
||||||
<option name="myItemId" value="www.mikescher.de" />
|
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
||||||
</PATH_ELEMENT>
|
|
||||||
<PATH_ELEMENT>
|
|
||||||
<option name="myItemId" value="www.mikescher.de" />
|
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
||||||
</PATH_ELEMENT>
|
|
||||||
<PATH_ELEMENT>
|
|
||||||
<option name="myItemId" value="www" />
|
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
||||||
</PATH_ELEMENT>
|
|
||||||
<PATH_ELEMENT>
|
|
||||||
<option name="myItemId" value="protected" />
|
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
||||||
</PATH_ELEMENT>
|
|
||||||
<PATH_ELEMENT>
|
|
||||||
<option name="myItemId" value="views" />
|
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
||||||
</PATH_ELEMENT>
|
|
||||||
<PATH_ELEMENT>
|
|
||||||
<option name="myItemId" value="api" />
|
|
||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
</PATH>
|
</PATH>
|
||||||
@ -529,6 +480,32 @@
|
|||||||
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
</PATH_ELEMENT>
|
</PATH_ELEMENT>
|
||||||
</PATH>
|
</PATH>
|
||||||
|
<PATH>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="www.mikescher.de" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="www.mikescher.de" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="www" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="protected" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="components" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
<PATH_ELEMENT>
|
||||||
|
<option name="myItemId" value="extendedGitGraph" />
|
||||||
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
||||||
|
</PATH_ELEMENT>
|
||||||
|
</PATH>
|
||||||
<PATH>
|
<PATH>
|
||||||
<PATH_ELEMENT>
|
<PATH_ELEMENT>
|
||||||
<option name="myItemId" value="www.mikescher.de" />
|
<option name="myItemId" value="www.mikescher.de" />
|
||||||
@ -578,7 +555,7 @@
|
|||||||
<recent name="E:\Eigene Dateien\Dropbox\Programming\Web\Mikescher.de\www.mikescher.de\www\protected\components\widgets" />
|
<recent name="E:\Eigene Dateien\Dropbox\Programming\Web\Mikescher.de\www.mikescher.de\www\protected\components\widgets" />
|
||||||
</key>
|
</key>
|
||||||
</component>
|
</component>
|
||||||
<component name="RunManager" selected="PHP HTTP Request.www.mikescher.de - About">
|
<component name="RunManager" selected="PHP HTTP Request.www.mikescher.de - Index">
|
||||||
<configuration default="false" name="index.php" type="JavascriptDebugType" factoryName="JavaScript Debug" singleton="true" temporary="true" uri="http://localhost:63342/www.mikescher.de/www/index.php">
|
<configuration default="false" name="index.php" type="JavascriptDebugType" factoryName="JavaScript Debug" singleton="true" temporary="true" uri="http://localhost:63342/www.mikescher.de/www/index.php">
|
||||||
<method />
|
<method />
|
||||||
</configuration>
|
</configuration>
|
||||||
@ -642,8 +619,8 @@
|
|||||||
</list>
|
</list>
|
||||||
<recent_temporary>
|
<recent_temporary>
|
||||||
<list size="3">
|
<list size="3">
|
||||||
<item index="0" class="java.lang.String" itemvalue="PHP Script.egh.php" />
|
<item index="0" class="java.lang.String" itemvalue="PHP Script.index.php" />
|
||||||
<item index="1" class="java.lang.String" itemvalue="PHP Script.index.php" />
|
<item index="1" class="java.lang.String" itemvalue="PHP Script.egh.php" />
|
||||||
<item index="2" class="java.lang.String" itemvalue="JavaScript Debug.index.php" />
|
<item index="2" class="java.lang.String" itemvalue="JavaScript Debug.index.php" />
|
||||||
</list>
|
</list>
|
||||||
</recent_temporary>
|
</recent_temporary>
|
||||||
@ -701,19 +678,19 @@
|
|||||||
<layout>
|
<layout>
|
||||||
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32873806" sideWeight="0.4997245" order="11" side_tool="false" content_ui="tabs" />
|
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32873806" sideWeight="0.4997245" order="11" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3244963" sideWeight="0.4997245" order="6" side_tool="false" content_ui="tabs" />
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32661718" sideWeight="0.4997245" order="1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.24958678" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Framework" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3294766" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
<window_info id="Framework" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3294766" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25950414" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.39554614" sideWeight="0.4997245" order="3" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39626557" sideWeight="0.4997245" order="3" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.2214876" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3244963" sideWeight="0.5002755" order="9" side_tool="true" content_ui="tabs" />
|
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3244963" sideWeight="0.5002755" order="9" side_tool="true" content_ui="tabs" />
|
||||||
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33722162" sideWeight="0.4997245" order="2" side_tool="false" content_ui="tabs" />
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.2214876" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3244963" sideWeight="0.4997245" order="6" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.24958678" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||||
|
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25950414" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
||||||
|
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33722162" sideWeight="0.4997245" order="2" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32694355" sideWeight="0.4997245" order="1" side_tool="false" content_ui="tabs" />
|
|
||||||
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="PHP-CGI Server" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
<window_info id="PHP-CGI Server" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||||
@ -742,35 +719,10 @@
|
|||||||
<breakpoints-dialog>
|
<breakpoints-dialog>
|
||||||
<breakpoints-dialog />
|
<breakpoints-dialog />
|
||||||
</breakpoints-dialog>
|
</breakpoints-dialog>
|
||||||
<option name="time" value="31" />
|
<option name="time" value="35" />
|
||||||
</breakpoint-manager>
|
</breakpoint-manager>
|
||||||
</component>
|
</component>
|
||||||
<component name="editorHistoryManager">
|
<component name="editorHistoryManager">
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/views/msmain/debugerror.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="4" column="34" selection-start="96" selection-end="96" vertical-scroll-proportion="-2.6153846" vertical-offset="0" max-vertical-offset="459" />
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/views/programs/admin.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="4" column="36" selection-start="105" selection-end="105" vertical-scroll-proportion="-2.6153846" vertical-offset="0" max-vertical-offset="1428" />
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/views/log/admin.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="4" column="54" selection-start="114" selection-end="114" vertical-scroll-proportion="0.019079685" vertical-offset="51" max-vertical-offset="1088" />
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/components/extendedGitGraph/style.css">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="26" column="16" selection-start="405" selection-end="405" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1615" />
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/components/MsHtml.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="3" column="36" selection-start="44" selection-end="70" vertical-scroll-proportion="0.057239056" vertical-offset="0" max-vertical-offset="1326" />
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/views/programs/create.php">
|
<entry file="file://$PROJECT_DIR$/www/protected/views/programs/create.php">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="7" column="35" selection-start="114" selection-end="114" vertical-scroll-proportion="0.2034188" vertical-offset="0" max-vertical-offset="585" />
|
<state line="7" column="35" selection-start="114" selection-end="114" vertical-scroll-proportion="0.2034188" vertical-offset="0" max-vertical-offset="585" />
|
||||||
@ -874,13 +826,6 @@
|
|||||||
<state line="0" column="5" selection-start="5" selection-end="5" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="611" />
|
<state line="0" column="5" selection-start="5" selection-end="5" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="611" />
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/www/css/styles.css">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="564" column="0" selection-start="9894" selection-end="9894" vertical-scroll-proportion="0.9443535" vertical-offset="9011" max-vertical-offset="9690">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/components/widgets/views/expandedLogHeader.php">
|
<entry file="file://$PROJECT_DIR$/www/protected/components/widgets/views/expandedLogHeader.php">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="14" column="41" selection-start="386" selection-end="386" vertical-scroll-proportion="0.4068376" vertical-offset="0" max-vertical-offset="595" />
|
<state line="14" column="41" selection-start="386" selection-end="386" vertical-scroll-proportion="0.4068376" vertical-offset="0" max-vertical-offset="595" />
|
||||||
@ -901,13 +846,6 @@
|
|||||||
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="-0.52307695" vertical-offset="306" max-vertical-offset="1003" />
|
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="-0.52307695" vertical-offset="306" max-vertical-offset="1003" />
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/views/msmain/admin.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="51" column="74" selection-start="1050" selection-end="1050" vertical-scroll-proportion="0.8717949" vertical-offset="357" max-vertical-offset="1598">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/views/log/index.php">
|
<entry file="file://$PROJECT_DIR$/www/protected/views/log/index.php">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="5" column="46" selection-start="136" selection-end="136" vertical-scroll-proportion="-0.16239317" vertical-offset="180" max-vertical-offset="765">
|
<state line="5" column="46" selection-start="136" selection-end="136" vertical-scroll-proportion="-0.16239317" vertical-offset="180" max-vertical-offset="765">
|
||||||
@ -950,20 +888,6 @@
|
|||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/views/programupdates/view.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="20" column="8" selection-start="699" selection-end="699" vertical-scroll-proportion="0.58391607" vertical-offset="6" max-vertical-offset="1224">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/views/programupdates/index.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="21" column="17" selection-start="434" selection-end="446" vertical-scroll-proportion="0.50598294" vertical-offset="61" max-vertical-offset="646">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/models/ProgramUpdatesLog.php">
|
<entry file="file://$PROJECT_DIR$/www/protected/models/ProgramUpdatesLog.php">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="6" column="26" selection-start="164" selection-end="164" vertical-scroll-proportion="-1.6153846" vertical-offset="1047" max-vertical-offset="1836">
|
<state line="6" column="26" selection-start="164" selection-end="164" vertical-scroll-proportion="-1.6153846" vertical-offset="1047" max-vertical-offset="1836">
|
||||||
@ -999,20 +923,6 @@
|
|||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/views/msmain/index.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="901">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/models/ProgramUpdates.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="6" column="25" selection-start="154" selection-end="159" vertical-scroll-proportion="-3.8846154" vertical-offset="1" max-vertical-offset="1853">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/views/msmain/about.php">
|
<entry file="file://$PROJECT_DIR$/www/protected/views/msmain/about.php">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="97" column="64" selection-start="3708" selection-end="3708" vertical-scroll-proportion="2.882867" vertical-offset="0" max-vertical-offset="2210">
|
<state line="97" column="64" selection-start="3708" selection-end="3708" vertical-scroll-proportion="2.882867" vertical-offset="0" max-vertical-offset="2210">
|
||||||
@ -1020,34 +930,6 @@
|
|||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/controllers/ProgramsController.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="230" column="28" selection-start="5785" selection-end="5870" vertical-scroll-proportion="-7.4615383" vertical-offset="3716" max-vertical-offset="4301">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/views/api/update.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="4" column="60" selection-start="130" selection-end="130" vertical-scroll-proportion="-2.6153846" vertical-offset="0" max-vertical-offset="170">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/components/MSController.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="14" column="0" selection-start="322" selection-end="322" vertical-scroll-proportion="-9.153846" vertical-offset="0" max-vertical-offset="374">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/config/main.php">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="79" column="42" selection-start="1895" selection-end="1895" vertical-scroll-proportion="-18.307692" vertical-offset="867" max-vertical-offset="2091">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/www/protected/controllers/APIController.php">
|
<entry file="file://$PROJECT_DIR$/www/protected/controllers/APIController.php">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="23" column="21" selection-start="387" selection-end="387" vertical-scroll-proportion="0.14529915" vertical-offset="306" max-vertical-offset="1003">
|
<state line="23" column="21" selection-start="387" selection-end="387" vertical-scroll-proportion="0.14529915" vertical-offset="306" max-vertical-offset="1003">
|
||||||
@ -1055,6 +937,115 @@
|
|||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/www/protected/components/MSController.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="14" column="0" selection-start="322" selection-end="322" vertical-scroll-proportion="0.4068376" vertical-offset="0" max-vertical-offset="585">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/www/protected/views/api/update.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="4" column="60" selection-start="130" selection-end="130" vertical-scroll-proportion="0.11623932" vertical-offset="0" max-vertical-offset="585">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/www/protected/config/main.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="79" column="42" selection-start="1895" selection-end="1895" vertical-scroll-proportion="0.8136752" vertical-offset="867" max-vertical-offset="2091">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/www/protected/controllers/ProgramsController.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="230" column="28" selection-start="5785" selection-end="5870" vertical-scroll-proportion="0.33162394" vertical-offset="3716" max-vertical-offset="4301">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/www/protected/models/ProgramUpdates.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="6" column="25" selection-start="154" selection-end="159" vertical-scroll-proportion="0.17264958" vertical-offset="1" max-vertical-offset="1853">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="jar://$APPLICATION_HOME_DIR$/plugins/php/lib/php.jar!/com/jetbrains/php/lang/psi/stubs/data/date_c.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="329" column="47" selection-start="12475" selection-end="12475" vertical-scroll-proportion="0.2888889" vertical-offset="5424" max-vertical-offset="10948">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/www/protected/components/extendedGitGraph/extendedGitGraph.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="-7.5786715" vertical-offset="4335" max-vertical-offset="8483">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/www/css/styles.css">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="4" column="15" selection-start="90" selection-end="90" vertical-scroll-proportion="0.111292966" vertical-offset="0" max-vertical-offset="9690">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/www/protected/views/programupdates/view.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="40" column="81" selection-start="1167" selection-end="1204" vertical-scroll-proportion="0.28671327" vertical-offset="516" max-vertical-offset="1224">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/www/protected/views/programupdates/index.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="21" column="17" selection-start="434" selection-end="446" vertical-scroll-proportion="0.50598294" vertical-offset="61" max-vertical-offset="646">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="jar://$APPLICATION_HOME_DIR$/plugins/php/lib/php.jar!/com/jetbrains/php/lang/psi/stubs/data/standard_2.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="947" column="9" selection-start="29352" selection-end="29352" vertical-scroll-proportion="-6.9615383" vertical-offset="15918" max-vertical-offset="18003">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/www/protected/components/ProgramHelper.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="52" column="73" selection-start="1202" selection-end="1202" vertical-scroll-proportion="-9.230769" vertical-offset="644" max-vertical-offset="1819">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/www/protected/components/SeededRandom.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="40" column="5" selection-start="679" selection-end="679" vertical-scroll-proportion="-23.192308" vertical-offset="77" max-vertical-offset="799">
|
||||||
|
<folding>
|
||||||
|
<element signature="e#6#84#0" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/www/protected/views/msmain/index.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="47" column="6" selection-start="795" selection-end="795" vertical-scroll-proportion="0.93436295" vertical-offset="315" max-vertical-offset="901">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/www/protected/views/msmain/admin.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="57" column="34" selection-start="1152" selection-end="1152" vertical-scroll-proportion="0.3938224" vertical-offset="765" max-vertical-offset="2227">
|
||||||
|
<folding>
|
||||||
|
<element signature="n#style#0;n#div#3;n#div#0;n#div#0;n#!!top" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
</component>
|
</component>
|
||||||
<component name="masterDetails">
|
<component name="masterDetails">
|
||||||
<states>
|
<states>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
-------------------------------------------------- */
|
-------------------------------------------------- */
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
padding: 70px 0;
|
padding: 45px 0;
|
||||||
margin-top: 70px;
|
margin-top: 70px;
|
||||||
border-top: 1px solid #e5e5e5;
|
border-top: 1px solid #e5e5e5;
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
|
@ -43,24 +43,30 @@ class ProgramHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param DateTime $date
|
||||||
* @return Program
|
* @return Program
|
||||||
*/
|
*/
|
||||||
public static function GetRecentProg()
|
public static function GetRecentProg($date)
|
||||||
{
|
{
|
||||||
$criteria = new CDbCriteria;
|
$criteria = new CDbCriteria;
|
||||||
$criteria->order = "add_date DESC";
|
$criteria->order = "add_date DESC";
|
||||||
$criteria->condition = "DATEDIFF(CURDATE(), add_date) <= 14 AND visible=1 AND enabled=1";
|
$criteria->condition = "DATEDIFF('" . $date->format('Y-m-d') . "', add_date) <= 14 AND visible=1 AND enabled=1";
|
||||||
$criteria->limit = 1;
|
$criteria->limit = 1;
|
||||||
|
|
||||||
return Program::model()->find($criteria);
|
return Program::model()->find($criteria);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param string $date
|
||||||
* @return Program
|
* @return Program
|
||||||
*/
|
*/
|
||||||
public static function GetDailyProg()
|
public static function GetDailyProg($date = 'now')
|
||||||
{
|
{
|
||||||
$recent = self::GetRecentProg();
|
if ($date == 'now') {
|
||||||
|
$date = new DateTime();
|
||||||
|
}
|
||||||
|
|
||||||
|
$recent = self::GetRecentProg($date);
|
||||||
|
|
||||||
if ($recent != null)
|
if ($recent != null)
|
||||||
return $recent;
|
return $recent;
|
||||||
@ -68,7 +74,7 @@ class ProgramHelper {
|
|||||||
$toparray = self::GetHighlightedProgList(false);
|
$toparray = self::GetHighlightedProgList(false);
|
||||||
|
|
||||||
$msrand = new SeededRandom();
|
$msrand = new SeededRandom();
|
||||||
$msrand->seedWithDailySeed();
|
$msrand->seedWithDailySeed($date);
|
||||||
|
|
||||||
$result = $msrand->getRandomElement($toparray);
|
$result = $msrand->getRandomElement($toparray);
|
||||||
|
|
||||||
|
@ -16,9 +16,13 @@ class SeededRandom
|
|||||||
$this->get();
|
$this->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
function seedWithDailySeed()
|
function seedWithDailySeed($date)
|
||||||
{
|
{
|
||||||
$this->seed($this->getDailySeed());
|
$this->seed(($date->format('Y') % 100) * 10459);
|
||||||
|
$max = $date->format('z');
|
||||||
|
for ($i = 0; $i < $max; $i++) {
|
||||||
|
$this->get();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function get($min = 0, $max = 9999999)
|
function get($min = 0, $max = 9999999)
|
||||||
@ -35,11 +39,4 @@ class SeededRandom
|
|||||||
{
|
{
|
||||||
return $arr[$this->get(0, count($arr))];
|
return $arr[$this->get(0, count($arr))];
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDailySeed()
|
|
||||||
{
|
|
||||||
$now = getdate();
|
|
||||||
|
|
||||||
return ($now['year'] % 100) * 366 + $now['yday'] /* * $now['seconds'] */;
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -86,4 +86,41 @@ $this->breadcrumbs =
|
|||||||
<a class="btn btn-primary" href="?do_egh_update=1"> Update </a>
|
<a class="btn btn-primary" href="?do_egh_update=1"> Update </a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="well well-small">
|
||||||
|
|
||||||
|
<h2>Program of the day</h2>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$data = array();
|
||||||
|
|
||||||
|
$now = new DateTime();
|
||||||
|
|
||||||
|
for ($i = 0; $i < 100; $i++) {
|
||||||
|
$data[] =
|
||||||
|
[
|
||||||
|
'Date' => $now->format('d.m.Y :: D'),
|
||||||
|
'Name' => ProgramHelper::GetDailyProg($now)->Name,
|
||||||
|
];
|
||||||
|
|
||||||
|
$now->modify('+1 day');
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->widget('bootstrap.widgets.TbGridView',
|
||||||
|
[
|
||||||
|
'type' => TbHtml::GRID_TYPE_CONDENSED,
|
||||||
|
'dataProvider' => new CArrayDataProvider($data,
|
||||||
|
[
|
||||||
|
'keyField' => 'Date',
|
||||||
|
'Pagination' =>
|
||||||
|
[
|
||||||
|
'PageSize' => 14,
|
||||||
|
]
|
||||||
|
]),
|
||||||
|
]
|
||||||
|
); ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue
Block a user