Permalink
Browse files

Source code uploaded for open sourcing

  • Loading branch information...
0 parents commit 57e8e86ec9941aa1425bebe9800b47bb19c0b5bd @chandrashekharshaw chandrashekharshaw committed Feb 15, 2012
Showing with 48,232 additions and 0 deletions.
  1. +1 −0 Apache-LICENSE.txt
  2. +74 −0 README
  3. +112 −0 install_Linux.sh
  4. +40 −0 install_Mac.sh
  5. +20 −0 mysql_schema.sh
  6. +139 −0 schema/schema.sql
  7. +290 −0 src/assist/Auth.class
  8. +43 −0 src/assist/Connection.php
  9. +285 −0 src/assist/PageProperties.class
  10. +121 −0 src/assist/common/Conf.php
  11. +565 −0 src/assist/common/DbRegistry.php
  12. +131 −0 src/assist/common/Helpers.php
  13. +105 −0 src/assist/common/Logger.php
  14. +894 −0 src/assist/common/MVC.php
  15. +35 −0 src/assist/common/init.php
  16. +51 −0 src/assist/controllers/ApplicationController.php
  17. +82 −0 src/assist/controllers/NavigationController.php
  18. +57 −0 src/assist/db.inc
  19. +47 −0 src/assist/globals.inc
  20. +30 −0 src/assist/include.inc
  21. +20 −0 src/assist/layouts/blank.phtml
  22. +200 −0 src/assist/layouts/default.phtml
  23. BIN src/assist/lib/.DS_Store
  24. +63 −0 src/assist/lib/Connection.php
  25. BIN src/assist/lib/model/.DS_Store
  26. +75 −0 src/assist/lib/model/calendar.php
  27. +1,033 −0 src/assist/lib/model/calendarConfig.php
  28. +26 −0 src/assist/prepend.php
  29. +78 −0 src/assist/views/calendar/addedit.phtml
  30. +209 −0 src/assist/views/calendar/addedittime.phtml
  31. +267 −0 src/assist/views/calendar/calendar.phtml
  32. +215 −0 src/assist/views/calendar/list.phtml
  33. +204 −0 src/assist/views/calendar/ticketlog.phtml
  34. +45 −0 src/assist/views/shared/_messages.phtml
  35. +23 −0 src/assist/views/shared/_navigation.phtml
  36. +66 −0 src/assist/views/shared/_pagination.phtml
  37. +289 −0 src/calendar.php
  38. +19 −0 src/conf/calendar_database.ini
  39. +6 −0 src/conf/setting.ini
  40. +59 −0 src/css/buttons.css
  41. BIN src/css/calendar/active-bg.gif
  42. BIN src/css/calendar/dark-bg.gif
  43. BIN src/css/calendar/hover-bg.gif
  44. BIN src/css/calendar/menuarrow.gif
  45. BIN src/css/calendar/normal-bg.gif
  46. +102 −0 src/css/calendar/opsdb.css
  47. BIN src/css/calendar/rowhover-bg.gif
  48. BIN src/css/calendar/status-bg.gif
  49. +236 −0 src/css/calendar/theme.css
  50. BIN src/css/calendar/title-bg.gif
  51. BIN src/css/calendar/today-bg.gif
  52. +105 −0 src/css/dashboard.css
  53. +484 −0 src/css/menu.css
  54. +721 −0 src/css/panchang.css
  55. +337 −0 src/css/toolbar.css
  56. +395 −0 src/group_mgmt.php
  57. +130 −0 src/header.php
  58. BIN src/images/add.png
  59. BIN src/images/arrow.gif
  60. BIN src/images/arrow_left.png
  61. BIN src/images/arrow_right.png
  62. BIN src/images/bottom_left.gif
  63. BIN src/images/bottom_right.gif
  64. BIN src/images/busybar_1.gif
  65. BIN src/images/buttons/bt_next.gif
  66. BIN src/images/buttons/bt_prev.gif
  67. BIN src/images/buttons/bt_search.gif
  68. BIN src/images/buttons/button_left.gif
  69. BIN src/images/buttons/button_left_off.gif
  70. BIN src/images/buttons/button_right_off_wide.gif
  71. BIN src/images/buttons/button_right_wide.gif
  72. BIN src/images/calendar_add.png
  73. BIN src/images/calendar_edit.png
  74. BIN src/images/clock_edit.png
  75. BIN src/images/comment.png
  76. BIN src/images/comments_add.png
  77. BIN src/images/content_tab_bg.gif
  78. BIN src/images/content_tab_left_off.gif
  79. BIN src/images/content_tab_left_on.gif
  80. BIN src/images/content_tab_right_off.gif
  81. BIN src/images/content_tab_right_on.gif
  82. BIN src/images/cross.png
  83. BIN src/images/delete.png
  84. BIN src/images/down_arrow.gif
  85. BIN src/images/down_arrow.png
  86. BIN src/images/icons/bt_graph.gif
  87. BIN src/images/icons/flag_orange.gif
  88. BIN src/images/icons/flag_red.gif
  89. BIN src/images/icons/icon_active.gif
  90. BIN src/images/icons/icon_alert.gif
  91. BIN src/images/icons/icon_complete.gif
  92. BIN src/images/icons/icon_copy.gif
  93. BIN src/images/icons/icon_delete.gif
  94. BIN src/images/icons/icon_delete_disabled.gif
  95. BIN src/images/icons/icon_down.gif
  96. BIN src/images/icons/icon_edit.gif
  97. BIN src/images/icons/icon_edit_disabled.gif
  98. BIN src/images/icons/icon_inactive.gif
  99. BIN src/images/icons/icon_incomplete.gif
  100. BIN src/images/icons/icon_info.gif
  101. BIN src/images/icons/icon_loading.gif
  102. BIN src/images/icons/icon_mail.gif
  103. BIN src/images/icons/icon_minus.gif
  104. BIN src/images/icons/icon_mobile.gif
  105. BIN src/images/icons/icon_network.gif
  106. BIN src/images/icons/icon_new.gif
  107. BIN src/images/icons/icon_paste.gif
  108. BIN src/images/icons/icon_plus.gif
  109. BIN src/images/icons/icon_popup.gif
  110. BIN src/images/icons/icon_popup_light.gif
  111. BIN src/images/icons/icon_touched.gif
  112. BIN src/images/icons/icon_untouched.gif
  113. BIN src/images/icons/icon_up.gif
  114. BIN src/images/icons/icon_verified.gif
  115. BIN src/images/icons/report_disk.png
  116. BIN src/images/icons/server_link.png
  117. BIN src/images/icons/user.png
  118. BIN src/images/icons/user_green.png
  119. BIN src/images/icons/zoom_in.png
  120. BIN src/images/info.png
  121. BIN src/images/logo.png
  122. BIN src/images/lookback.png
  123. BIN src/images/main_0015.gif
  124. BIN src/images/map.gif
  125. BIN src/images/ops_tools_small.gif
  126. BIN src/images/page_edit.png
  127. BIN src/images/pdate.gif
  128. BIN src/images/play_arrow.gif
  129. BIN src/images/play_arrow.png
  130. BIN src/images/rc_bl.gif
  131. BIN src/images/rc_br.gif
  132. BIN src/images/rc_tl.gif
  133. BIN src/images/rc_tl_clean.gif
  134. BIN src/images/rc_tr.gif
  135. BIN src/images/rc_tr_clean.gif
  136. BIN src/images/rloading.gif
  137. BIN src/images/separator_120.gif
  138. BIN src/images/separator_50.gif
  139. BIN src/images/separator_75.gif
  140. BIN src/images/sort_down.gif
  141. BIN src/images/sort_up.gif
  142. BIN src/images/staging.png
  143. BIN src/images/status_offline.png
  144. BIN src/images/status_online.png
  145. BIN src/images/tab-left-off.gif
  146. BIN src/images/tab-left-off_purple.gif
  147. BIN src/images/tab-left-on.gif
  148. BIN src/images/tab-left-on_purple.gif
  149. BIN src/images/tab-quotebar.gif
  150. BIN src/images/tab-quotebar_purple.gif
  151. BIN src/images/tab-right-off-wide.gif
  152. BIN src/images/tab-right-off-wide_purple.gif
  153. BIN src/images/tab-right-on-wide.gif
  154. BIN src/images/tab-right-on-wide_purple.gif
  155. BIN src/images/tab-subnav-background.gif
  156. BIN src/images/tab-subnav-background_purple.gif
  157. BIN src/images/tab-subnav-separator.gif
  158. BIN src/images/tab-subnav-separator_purple.gif
  159. BIN src/images/tab_context.gif
  160. BIN src/images/tab_context_bottom.gif
  161. BIN src/images/tab_context_head.gif
  162. BIN src/images/tick.png
  163. BIN src/images/tick_in.png
  164. BIN src/images/top_left.gif
  165. BIN src/images/top_right.gif
  166. BIN src/images/unplug.gif
  167. BIN src/images/zoom_in.png
  168. +69 −0 src/index.php
  169. +128 −0 src/js/dynamic.js
  170. +127 −0 src/js/helper/calendar-en.js
  171. +200 −0 src/js/helper/calendar-setup.js
  172. +1,863 −0 src/js/helper/calendar.js
  173. +9,266 −0 src/js/helper/jquery.js
  174. +250 −0 src/js/overview.js
  175. +24 −0 src/js/panchang.js
  176. +34 −0 src/js/textarea.js
  177. +1,687 −0 src/js/util.js
  178. +105 −0 src/js/yui/DDList.js
  179. +777 −0 src/js/yui/connection.js
  180. +84 −0 src/js/yui/yahoo.js
  181. +23 −0 src/log_out.php
  182. +1,489 −0 src/pear/DB.php
  183. +4,698 −0 src/pear/DB/DataObject.php
  184. +549 −0 src/pear/DB/DataObject/Cast.php
  185. +53 −0 src/pear/DB/DataObject/Error.php
  186. +1,620 −0 src/pear/DB/DataObject/Generator.php
  187. +59 −0 src/pear/DB/DataObject/createTables.php
  188. +2,262 −0 src/pear/DB/common.php
  189. +510 −0 src/pear/DB/dbase.php
  190. +769 −0 src/pear/DB/fbsql.php
  191. +1,082 −0 src/pear/DB/ibase.php
  192. +683 −0 src/pear/DB/ifx.php
  193. +831 −0 src/pear/DB/msql.php
  194. +984 −0 src/pear/DB/mssql.php
  195. +1,044 −0 src/pear/DB/mysql.php
  196. +1,092 −0 src/pear/DB/mysqli.php
  197. +1,158 −0 src/pear/DB/oci8.php
  198. +883 −0 src/pear/DB/odbc.php
  199. +1,135 −0 src/pear/DB/pgsql.php
  200. +963 −0 src/pear/DB/sqlite.php
  201. +506 −0 src/pear/DB/storage.php
  202. +942 −0 src/pear/DB/sybase.php
  203. +1,063 −0 src/pear/PEAR.php
  204. +33 −0 src/pear/PEAR5.php
  205. +219 −0 src/team_mgmt.php
  206. +219 −0 src/user_mgmt.php
  207. +52 −0 test/PagePropertiesTest.php
  208. +127 −0 test/calendarConfigTest.php
  209. +41 −0 test/calendarTest.php
@@ -0,0 +1 @@
+Apache LicenseVersion 2.0, January 2004http://www.apache.org/licenses/TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION1. Definitions."License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document."Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License."Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity."You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License."Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files."Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types."Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below)."Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof."Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution.""Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and(b) You must cause any modified files to carry prominent notices stating that You changed the files; and(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.END OF TERMS AND CONDITIONSAPPENDIX: How to apply the Apache License to your work.To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.Copyright [yyyy] [name of copyright owner]Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions and limitations under the License.
74 README
@@ -0,0 +1,74 @@
+ Panchang (People on Duty)
+ -------------------------
+ ~~~~~~ Installation Instruction ~~~~~~~
+
+The installation procedure depends on the base operating system:-
+
+ Linux(Fedora, CentOS, RHEL) System
+ ----------------------------------
+
+ If you have AMP stack (apache, mysql, php) running on your system then follow the
+ following steps:-
+
+ 1) Create a directory named "calendar" inside the apache root directory.
+ 2) Copy the content of "src" directory to newly created directory "calendar".
+ 3) Run the script mysql_schema.sh to create the required database schema.
+ $ ./mysql_schema.sh
+
+ Else if you want to install this package from scratch on fresh operating system
+ then start installing with these steps:-
+
+ 1) Run the script install.sh which will install and configure the AMP server then
+ install this package on proper position.
+ $ ./install_Linux.sh
+ 2) Run the script mysql_schema.sh to create the required database schema.
+ $ ./mysql_schema.sh
+
+
+ Mac OSX
+ -------
+
+ Mac OSX already comes with Apache installed and PHP bundled up with it. By default
+ both are inactive and require us to get them ready for business. This can be achieved
+ by following simple steps:
+
+ 1) Run the script install_Mac.sh which will set up the Apache server with PHP support.
+ $ ./install_Mac.sh
+
+ 2) Create a directory named "calendar" inside the apache root directory.
+
+ 3) Copy the content of "src" directory to newly created directory "calendar".
+
+ 4) Download the MySQL package for Mac OSX depending on the base machine from-
+ http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg
+
+ 5) Install everything in the package in this order: mysql, the startup item, the
+ preference pane. Run this command
+ export PATH=${PATH}:/usr/local/mysql/bin/
+
+ 6) Run the script mysql_schema.sh to create the required database schema.
+ $ ./mysql_schema.sh
+
+
+
+ Access Panchang by opening the link :
+
+ http://localhost/calendar/index.php or http://SERVERNAME/calendar/index.php
+ --------------------------------------------------------------------------------------
+
+ NOTE: 3rd party open source packages and codes which have been used to support this
+ package along with their download location :-
+
+ * Apache web server :http://httpd.apache.org/download.cgi
+ * PHP :http://in.php.net/distributions/
+ * MySQL :http://www.mysql.com/downloads/mysql/
+ * PEAR :http://pear.php.net/package/PEAR/download
+ * PEAR-DB :http://pear.php.net/package/DB/download
+ * DB_DataObject :http://pear.php.net/package/DB_DataObject/download
+ * YUI Library :http://developer.yahoo.com/yui/
+ * Jquery :http://code.jquery.com/jquery-1.7.1.js
+ * DHTML calendar JS :http://www.dynarch.com/projects/calendar/download/
+
+
+
+ ------------------------------------------------------------------------------------------
@@ -0,0 +1,112 @@
+#!/bin/bash
+
+#//+---------------------------------------------------------------------------------------------------------------------------------+
+#// /
+#// Copyright (c) 2012 Yahoo! Inc. All rights reserved. /
+#// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this /
+#// file except in compliance with the License. You may obtain a copy of the License at /
+#// /
+#// http://www.apache.org/licenses/LICENSE-2.0 /
+#// /
+#// Unless required by applicable law or agreed to in writing, software distributed under /
+#// the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF /
+#// ANY KIND, either express or implied. See the License for the specific language governing /
+#// permissions and limitations under the License. See accompanying LICENSE file. /
+#// /
+#// $Author:shawcs@yahoo-inc.com $Date: 30-Jan-2012 /
+#// /
+#//+---------------------------------------------------------------------------------------------------------------------------------+
+
+##### Download Mysql packages
+
+sudo wget --progress=bar --directory-prefix=/tmp/ ftp://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.5/MySQL-server-5.5.20-1.linux2.6.i386.rpm
+
+sudo wget --progress=bar --directory-prefix=/tmp/ http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.5/MySQL-client-5.5.20-1.linux2.6.i386.rpm
+
+sudo wget --progress=bar --directory-prefix=/tmp/ http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.5/MySQL-shared-5.5.20-1.linux2.6.i386.rpm
+
+##### Download apache package
+
+sudo wget --progress=bar --directory-prefix=/tmp/ http://ftp.wayne.edu/apache//httpd/httpd-2.2.21.tar.gz
+
+#### Downlaod PHP package
+
+sudo wget --progress=bar --directory-prefix=/tmp/ http://in.php.net/distributions/php-5.3.9.tar.gz
+
+pushd .
+
+cd /tmp/
+
+sudo rpm -ivh MySQL-client-5.5.20-1.linux2.6.i386.rpm MySQL-server-5.5.20-1.linux2.6.i386.rpm MySQL-shared-5.5.20-1.linux2.6.i386.rpm
+
+sudo mysql_install_db
+
+sudo /sbin/ldconfig
+
+cd /usr/local/
+
+sudo cp /tmp/httpd-2.2.21.tar.gz ./
+
+sudo tar -xzvf httpd-2.2.21.tar.gz
+
+cd httpd-2.2.21
+
+sudo ./configure --enable-so
+
+sudo make
+
+sudo make install
+
+cd /usr/local/
+
+sudo cp /tmp/php-5.3.9.tar.gz ./
+
+sudo tar -xzvf php-5.3.9.tar.gz
+
+cd php-5.3.9
+
+sudo ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql-dir=/usr/bin/mysql --with-pdo-mysql=mysqlnd
+
+sudo make
+
+sudo make install
+
+sudo cp php.ini-development /usr/local/lib/php.ini
+
+sudo sed "s/short_open_tag = Off/short_open_tag = On/" /usr/local/lib/php.ini>~/tmp
+
+sudo mv ~/tmp /usr/local/lib/php.ini
+
+sudo sed "s/display_errors/;display_errors/" /usr/local/lib/php.ini>~/tmp
+
+sudo mv ~/tmp /usr/local/lib/php.ini
+
+sudo sed "s/short_open_tag/;short_open_tag/" /usr/local/lib/php.ini>~/tmp
+
+sudo mv ~/tmp /usr/local/lib/php.ini
+
+sudo echo "display_errors = Off">>/usr/local/lib/php.ini
+
+sudo sed "s/#LoadModule php5_module/LoadModule php5_module/" /usr/local/apache2/conf/httpd.conf>~/tmp
+
+sudo mv ~/tmp /usr/local/apache2/conf/httpd.conf
+
+sudo sed "s/DirectoryIndex index.html/DirectoryIndex index.html index.php/" /usr/local/apache2/conf/httpd.conf>~/tmp
+
+sudo mv ~/tmp /usr/local/apache2/conf/httpd.conf
+
+sudo echo "AddType application/x-httpd-php .php .phtml">>/usr/local/apache2/conf/httpd.conf
+
+sudo echo "AddType application/x-httpd-php-source .phps">>/usr/local/apache2/conf/httpd.conf
+
+sudo /etc/init.d/mysql start
+
+sudo /usr/local/apache2/bin/apachectl start
+
+popd
+
+sudo mkdir /usr/local/apache2/htdocs/calendar
+
+sudo cp -R src/* /usr/local/apache2/htdocs/calendar/
+
+
Oops, something went wrong.

0 comments on commit 57e8e86

Please sign in to comment.