{"action":"created","comment":{"url":"https://api.github.com/repos/ryanhowdy/fcms/pulls/comments/69587147","id":69587147,"diff_hunk":"@@ -0,0 +1,380 @@\n+<?php\n+/**\n+ * Debug\n+ * \n+ * PHP version 5\n+ *\n+ * @category  FCMS\n+ * @package   FamilyConnections\n+ * @author    Ryan Haudenschilt <r.haudenschilt@gmail.com> \n+ * @copyright 2015 Haudenschilt LLC\n+ * @license   http://www.gnu.org/licenses/gpl-2.0.html GPLv2\n+ * @link      http://www.familycms.com/wiki/\n+ */\n+session_start();\n+\n+define('URL_PREFIX', '../');\n+define('GALLERY_PREFIX', '../gallery/');\n+\n+require URL_PREFIX.'fcms.php';\n+\n+init('admin/');\n+\n+// Globals\n+$page = new Page($fcmsError, $fcmsDatabase, $fcmsUser);\n+\n+exit();\n+\n+class Page\n+{\n+    private $fcmsError;\n+    private $fcmsDatabase;\n+    private $fcmsUser;\n+    private $fcmsTemplate;\n+\n+    /**\n+     * Constructor\n+     * \n+     * @return void\n+     */\n+    public function __construct ($fcmsError, $fcmsDatabase, $fcmsUser)\n+    {\n+        $this->fcmsError        = $fcmsError;\n+        $this->fcmsDatabase     = $fcmsDatabase;\n+        $this->fcmsUser         = $fcmsUser;\n+\n+        $this->fcmsTemplate = array(\n+            'sitename'      => getSiteName(),\n+            'nav-link'      => getAdminNavLinks(),\n+            'pagetitle'     => T_('Administration: Debug'),\n+            'path'          => URL_PREFIX,\n+            'displayname'   => $this->fcmsUser->displayName,\n+            'version'       => getCurrentVersion(),\n+            'year'          => date('Y')\n+        );\n+\n+        $this->control();\n+    }\n+\n+    /**\n+     * control \n+     * \n+     * The controlling structure for this script.\n+     * \n+     * @return void\n+     */\n+    function control ()\n+    {\n+        if ($this->fcmsUser->access > 1)\n+        {\n+            $this->displayInvalidAccessLevel();\n+            return;\n+        }\n+        else\n+        {\n+            $this->displayHeader();\n+            $this->displayDebug();\n+            $this->displayFooter();\n+        }\n+    }\n+\n+    /**\n+     * displayHeader \n+     * \n+     * @return void\n+     */\n+    function displayHeader ()\n+    {\n+        $TMPL = $this->fcmsTemplate;\n+\n+        $TMPL['javascript'] = '\n+<script type=\"text/javascript\" src=\"'.URL_PREFIX.'ui/js/jquery.js\"></script>\n+<script type=\"text/javascript\" src=\"'.URL_PREFIX.'ui/twitter-bootstrap/js/bootstrap-tabs.js\"></script>';\n+\n+        include_once URL_PREFIX.'ui/admin/header.php';\n+\n+        echo '\n+        <div id=\"admin-debug\">';\n+    }\n+\n+    /**\n+     * displayFooter \n+     * \n+     * @return void\n+     */\n+    function displayFooter ()\n+    {\n+        $TMPL = $this->fcmsTemplate;\n+\n+        echo '\n+        </div><!-- /admin-debug -->';\n+\n+        include_once URL_PREFIX.'ui/admin/footer.php';\n+    }\n+\n+    /**\n+     * displayInvalidAccessLevel \n+     * \n+     * Display an error message for users who do not have admin access.\n+     * \n+     * @return void\n+     */\n+    function displayInvalidAccessLevel ()\n+    {\n+        $this->displayHeader();\n+\n+        echo '\n+            <p class=\"error-alert\">\n+                <b>'.T_('You do not have access to view this page.').'</b><br/>\n+                '.T_('This page requires an access level 1 (Admin).').' \n+                <a href=\"'.URL_PREFIX.'contact.php\">'.T_('Please contact your website\\'s administrator if you feel you should have access to this page.').'</a>\n+            </p>';\n+\n+        $this->displayFooter();\n+    }\n+\n+    /**\n+     * displayDebug\n+     * \n+     * @return void\n+     */\n+    function displayDebug ()\n+    {\n+        global $cfg_mysql_host, $cfg_mysql_db, $cfg_mysql_user;\n+\n+        $this->displayHeader();\n+\n+        // Get Config data\n+        $config = array();\n+\n+        $sql = \"SELECT `name`, `value`\n+                FROM `fcms_config`\";\n+\n+        $rows = $this->fcmsDatabase->getRows($sql);\n+        if ($rows === false)\n+        {\n+            $this->fcmsError->displayError();\n+            $this->displayFooter();\n+            return;\n+        }\n+\n+        foreach ($rows as $r)\n+        {\n+            $config[$r['name']] = $r['value'];\n+        }\n+\n+        // Get Plugin data\n+        $disabledPlugins = array();\n+\n+        $sql = \"SELECT `id`, `link`, `col`, `order`, `req`\n+                FROM `fcms_navigation` \n+                WHERE (`col` = 3 OR `col` = 4)\n+                AND `order` = 0\";\n+\n+        $rows = $this->fcmsDatabase->getRows($sql);\n+        if ($rows === false)\n+        {\n+            $this->fcmsError->displayError();\n+            $this->displayFooter();\n+            return;\n+        }\n+\n+        foreach ($rows as $r)","path":"familyconnections/admin/debug.php","position":161,"original_position":182,"commit_id":"cae2ead6f0ba9941dc16e3ea455a7d4e237cad99","original_commit_id":"cae2ead6f0ba9941dc16e3ea455a7d4e237cad99","user":{"login":"Nitpick-CI","id":12626182,"avatar_url":"https://avatars.githubusercontent.com/u/12626182?v=3","gravatar_id":"","url":"https://api.github.com/users/Nitpick-CI","html_url":"https://github.com/Nitpick-CI","followers_url":"https://api.github.com/users/Nitpick-CI/followers","following_url":"https://api.github.com/users/Nitpick-CI/following{/other_user}","gists_url":"https://api.github.com/users/Nitpick-CI/gists{/gist_id}","starred_url":"https://api.github.com/users/Nitpick-CI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nitpick-CI/subscriptions","organizations_url":"https://api.github.com/users/Nitpick-CI/orgs","repos_url":"https://api.github.com/users/Nitpick-CI/repos","events_url":"https://api.github.com/users/Nitpick-CI/events{/privacy}","received_events_url":"https://api.github.com/users/Nitpick-CI/received_events","type":"User","site_admin":false},"body":"Expected 1 space after closing parenthesis; found 9","created_at":"2016-07-05T15:45:39Z","updated_at":"2016-07-05T15:45:39Z","html_url":"https://github.com/ryanhowdy/fcms/pull/535#discussion_r69587147","pull_request_url":"https://api.github.com/repos/ryanhowdy/fcms/pulls/535","_links":{"self":{"href":"https://api.github.com/repos/ryanhowdy/fcms/pulls/comments/69587147"},"html":{"href":"https://github.com/ryanhowdy/fcms/pull/535#discussion_r69587147"},"pull_request":{"href":"https://api.github.com/repos/ryanhowdy/fcms/pulls/535"}}},"pull_request":{"url":"https://api.github.com/repos/ryanhowdy/fcms/pulls/535","id":76296859,"html_url":"https://github.com/ryanhowdy/fcms/pull/535","diff_url":"https://github.com/ryanhowdy/fcms/pull/535.diff","patch_url":"https://github.com/ryanhowdy/fcms/pull/535.patch","issue_url":"https://api.github.com/repos/ryanhowdy/fcms/issues/535","number":535,"state":"open","locked":false,"title":"3.7.0","user":{"login":"vikasyadavbtech","id":10258498,"avatar_url":"https://avatars.githubusercontent.com/u/10258498?v=3","gravatar_id":"","url":"https://api.github.com/users/vikasyadavbtech","html_url":"https://github.com/vikasyadavbtech","followers_url":"https://api.github.com/users/vikasyadavbtech/followers","following_url":"https://api.github.com/users/vikasyadavbtech/following{/other_user}","gists_url":"https://api.github.com/users/vikasyadavbtech/gists{/gist_id}","starred_url":"https://api.github.com/users/vikasyadavbtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikasyadavbtech/subscriptions","organizations_url":"https://api.github.com/users/vikasyadavbtech/orgs","repos_url":"https://api.github.com/users/vikasyadavbtech/repos","events_url":"https://api.github.com/users/vikasyadavbtech/events{/privacy}","received_events_url":"https://api.github.com/users/vikasyadavbtech/received_events","type":"User","site_admin":false},"body":"Hi Editor, \r\nI have download and used your Family CMS script from your website. But, when I install it on my localhost, it give me a fatal error:\r\n\r\nFatal error: Maximum execution time of 30 seconds exceeded in C:\\xampp\\htdocs\\PhpProject1\\inc\\install_inc.php on line 700\r\n\r\nI have check the link 700 in my localhost, but no execution time is found. Please tell me how i can solve this issue.\r\n\r\nThanks & Regards...\r\nvikasyadavbtech@gmail.com\r\n","created_at":"2016-07-05T15:44:58Z","updated_at":"2016-07-05T15:45:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf730b2f2e8e29b413a95ceae5e2e7019e5ce6ac","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ryanhowdy/fcms/pulls/535/commits","review_comments_url":"https://api.github.com/repos/ryanhowdy/fcms/pulls/535/comments","review_comment_url":"https://api.github.com/repos/ryanhowdy/fcms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ryanhowdy/fcms/issues/535/comments","statuses_url":"https://api.github.com/repos/ryanhowdy/fcms/statuses/cae2ead6f0ba9941dc16e3ea455a7d4e237cad99","head":{"label":"ryanhowdy:3.7.0","ref":"3.7.0","sha":"cae2ead6f0ba9941dc16e3ea455a7d4e237cad99","user":{"login":"ryanhowdy","id":119044,"avatar_url":"https://avatars.githubusercontent.com/u/119044?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanhowdy","html_url":"https://github.com/ryanhowdy","followers_url":"https://api.github.com/users/ryanhowdy/followers","following_url":"https://api.github.com/users/ryanhowdy/following{/other_user}","gists_url":"https://api.github.com/users/ryanhowdy/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanhowdy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanhowdy/subscriptions","organizations_url":"https://api.github.com/users/ryanhowdy/orgs","repos_url":"https://api.github.com/users/ryanhowdy/repos","events_url":"https://api.github.com/users/ryanhowdy/events{/privacy}","received_events_url":"https://api.github.com/users/ryanhowdy/received_events","type":"User","site_admin":false},"repo":{"id":7969872,"name":"fcms","full_name":"ryanhowdy/fcms","owner":{"login":"ryanhowdy","id":119044,"avatar_url":"https://avatars.githubusercontent.com/u/119044?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanhowdy","html_url":"https://github.com/ryanhowdy","followers_url":"https://api.github.com/users/ryanhowdy/followers","following_url":"https://api.github.com/users/ryanhowdy/following{/other_user}","gists_url":"https://api.github.com/users/ryanhowdy/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanhowdy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanhowdy/subscriptions","organizations_url":"https://api.github.com/users/ryanhowdy/orgs","repos_url":"https://api.github.com/users/ryanhowdy/repos","events_url":"https://api.github.com/users/ryanhowdy/events{/privacy}","received_events_url":"https://api.github.com/users/ryanhowdy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryanhowdy/fcms","description":"Family Connections - Create a private family website.","fork":false,"url":"https://api.github.com/repos/ryanhowdy/fcms","forks_url":"https://api.github.com/repos/ryanhowdy/fcms/forks","keys_url":"https://api.github.com/repos/ryanhowdy/fcms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryanhowdy/fcms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryanhowdy/fcms/teams","hooks_url":"https://api.github.com/repos/ryanhowdy/fcms/hooks","issue_events_url":"https://api.github.com/repos/ryanhowdy/fcms/issues/events{/number}","events_url":"https://api.github.com/repos/ryanhowdy/fcms/events","assignees_url":"https://api.github.com/repos/ryanhowdy/fcms/assignees{/user}","branches_url":"https://api.github.com/repos/ryanhowdy/fcms/branches{/branch}","tags_url":"https://api.github.com/repos/ryanhowdy/fcms/tags","blobs_url":"https://api.github.com/repos/ryanhowdy/fcms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryanhowdy/fcms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryanhowdy/fcms/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryanhowdy/fcms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryanhowdy/fcms/statuses/{sha}","languages_url":"https://api.github.com/repos/ryanhowdy/fcms/languages","stargazers_url":"https://api.github.com/repos/ryanhowdy/fcms/stargazers","contributors_url":"https://api.github.com/repos/ryanhowdy/fcms/contributors","subscribers_url":"https://api.github.com/repos/ryanhowdy/fcms/subscribers","subscription_url":"https://api.github.com/repos/ryanhowdy/fcms/subscription","commits_url":"https://api.github.com/repos/ryanhowdy/fcms/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryanhowdy/fcms/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryanhowdy/fcms/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryanhowdy/fcms/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryanhowdy/fcms/contents/{+path}","compare_url":"https://api.github.com/repos/ryanhowdy/fcms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryanhowdy/fcms/merges","archive_url":"https://api.github.com/repos/ryanhowdy/fcms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryanhowdy/fcms/downloads","issues_url":"https://api.github.com/repos/ryanhowdy/fcms/issues{/number}","pulls_url":"https://api.github.com/repos/ryanhowdy/fcms/pulls{/number}","milestones_url":"https://api.github.com/repos/ryanhowdy/fcms/milestones{/number}","notifications_url":"https://api.github.com/repos/ryanhowdy/fcms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryanhowdy/fcms/labels{/name}","releases_url":"https://api.github.com/repos/ryanhowdy/fcms/releases{/id}","deployments_url":"https://api.github.com/repos/ryanhowdy/fcms/deployments","created_at":"2013-02-02T01:19:24Z","updated_at":"2016-06-20T16:01:17Z","pushed_at":"2016-07-05T15:44:58Z","git_url":"git://github.com/ryanhowdy/fcms.git","ssh_url":"git@github.com:ryanhowdy/fcms.git","clone_url":"https://github.com/ryanhowdy/fcms.git","svn_url":"https://github.com/ryanhowdy/fcms","homepage":"http://www.familycms.com","size":11968,"stargazers_count":27,"watchers_count":27,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":60,"forks":24,"open_issues":60,"watchers":27,"default_branch":"master"}},"base":{"label":"ryanhowdy:master","ref":"master","sha":"e4f384f978f99f5e79e22ffa0e0a51c76f016a21","user":{"login":"ryanhowdy","id":119044,"avatar_url":"https://avatars.githubusercontent.com/u/119044?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanhowdy","html_url":"https://github.com/ryanhowdy","followers_url":"https://api.github.com/users/ryanhowdy/followers","following_url":"https://api.github.com/users/ryanhowdy/following{/other_user}","gists_url":"https://api.github.com/users/ryanhowdy/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanhowdy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanhowdy/subscriptions","organizations_url":"https://api.github.com/users/ryanhowdy/orgs","repos_url":"https://api.github.com/users/ryanhowdy/repos","events_url":"https://api.github.com/users/ryanhowdy/events{/privacy}","received_events_url":"https://api.github.com/users/ryanhowdy/received_events","type":"User","site_admin":false},"repo":{"id":7969872,"name":"fcms","full_name":"ryanhowdy/fcms","owner":{"login":"ryanhowdy","id":119044,"avatar_url":"https://avatars.githubusercontent.com/u/119044?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanhowdy","html_url":"https://github.com/ryanhowdy","followers_url":"https://api.github.com/users/ryanhowdy/followers","following_url":"https://api.github.com/users/ryanhowdy/following{/other_user}","gists_url":"https://api.github.com/users/ryanhowdy/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanhowdy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanhowdy/subscriptions","organizations_url":"https://api.github.com/users/ryanhowdy/orgs","repos_url":"https://api.github.com/users/ryanhowdy/repos","events_url":"https://api.github.com/users/ryanhowdy/events{/privacy}","received_events_url":"https://api.github.com/users/ryanhowdy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryanhowdy/fcms","description":"Family Connections - Create a private family website.","fork":false,"url":"https://api.github.com/repos/ryanhowdy/fcms","forks_url":"https://api.github.com/repos/ryanhowdy/fcms/forks","keys_url":"https://api.github.com/repos/ryanhowdy/fcms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryanhowdy/fcms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryanhowdy/fcms/teams","hooks_url":"https://api.github.com/repos/ryanhowdy/fcms/hooks","issue_events_url":"https://api.github.com/repos/ryanhowdy/fcms/issues/events{/number}","events_url":"https://api.github.com/repos/ryanhowdy/fcms/events","assignees_url":"https://api.github.com/repos/ryanhowdy/fcms/assignees{/user}","branches_url":"https://api.github.com/repos/ryanhowdy/fcms/branches{/branch}","tags_url":"https://api.github.com/repos/ryanhowdy/fcms/tags","blobs_url":"https://api.github.com/repos/ryanhowdy/fcms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryanhowdy/fcms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryanhowdy/fcms/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryanhowdy/fcms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryanhowdy/fcms/statuses/{sha}","languages_url":"https://api.github.com/repos/ryanhowdy/fcms/languages","stargazers_url":"https://api.github.com/repos/ryanhowdy/fcms/stargazers","contributors_url":"https://api.github.com/repos/ryanhowdy/fcms/contributors","subscribers_url":"https://api.github.com/repos/ryanhowdy/fcms/subscribers","subscription_url":"https://api.github.com/repos/ryanhowdy/fcms/subscription","commits_url":"https://api.github.com/repos/ryanhowdy/fcms/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryanhowdy/fcms/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryanhowdy/fcms/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryanhowdy/fcms/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryanhowdy/fcms/contents/{+path}","compare_url":"https://api.github.com/repos/ryanhowdy/fcms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryanhowdy/fcms/merges","archive_url":"https://api.github.com/repos/ryanhowdy/fcms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryanhowdy/fcms/downloads","issues_url":"https://api.github.com/repos/ryanhowdy/fcms/issues{/number}","pulls_url":"https://api.github.com/repos/ryanhowdy/fcms/pulls{/number}","milestones_url":"https://api.github.com/repos/ryanhowdy/fcms/milestones{/number}","notifications_url":"https://api.github.com/repos/ryanhowdy/fcms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryanhowdy/fcms/labels{/name}","releases_url":"https://api.github.com/repos/ryanhowdy/fcms/releases{/id}","deployments_url":"https://api.github.com/repos/ryanhowdy/fcms/deployments","created_at":"2013-02-02T01:19:24Z","updated_at":"2016-06-20T16:01:17Z","pushed_at":"2016-07-05T15:44:58Z","git_url":"git://github.com/ryanhowdy/fcms.git","ssh_url":"git@github.com:ryanhowdy/fcms.git","clone_url":"https://github.com/ryanhowdy/fcms.git","svn_url":"https://github.com/ryanhowdy/fcms","homepage":"http://www.familycms.com","size":11968,"stargazers_count":27,"watchers_count":27,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":60,"forks":24,"open_issues":60,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ryanhowdy/fcms/pulls/535"},"html":{"href":"https://github.com/ryanhowdy/fcms/pull/535"},"issue":{"href":"https://api.github.com/repos/ryanhowdy/fcms/issues/535"},"comments":{"href":"https://api.github.com/repos/ryanhowdy/fcms/issues/535/comments"},"review_comments":{"href":"https://api.github.com/repos/ryanhowdy/fcms/pulls/535/comments"},"review_comment":{"href":"https://api.github.com/repos/ryanhowdy/fcms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ryanhowdy/fcms/pulls/535/commits"},"statuses":{"href":"https://api.github.com/repos/ryanhowdy/fcms/statuses/cae2ead6f0ba9941dc16e3ea455a7d4e237cad99"}}}}
{"actor":{"display_login":"Nitpick-CI"}}