{"id":4964,"date":"2012-12-21T09:24:19","date_gmt":"2012-12-21T14:24:19","guid":{"rendered":"https:\/\/www.caskeys.com\/dc\/?p=4964"},"modified":"2017-01-15T23:32:18","modified_gmt":"2017-01-16T04:32:18","slug":"php-global-constants","status":"publish","type":"post","link":"https:\/\/www.caskeys.com\/dc\/php-global-constants\/","title":{"rendered":"PHP &#8211; Global Constants"},"content":{"rendered":"<p>This set of global constants is a dependency for nearly all other functions and classes I have created with PHP. For obvious security reasons some of the actual values may be removed.<\/p>\n<pre class=\"brush: php; title: Code:; notranslate\" title=\"Code:\">\r\nclass constants\r\n{    \r\n\r\n\t\/*\r\n\tconstants\r\n\tDamon Vaughn Caskey\r\n\t2012_12_18\r\n\t~2012_12_30: Local constants moved back to individual class files.\r\n\t\r\n\tGlobal constants. \r\n\t*\/\t\t\r\n\t\r\n\t\/* Basic values *\/\r\n\tconst\tc_cAdmin\t\t= &quot;&quot;;\t\t\t\t\t\t\t\t\t\t\/\/Default &quot;all access&quot; user accounts.\r\n\tconst\tc_cDateF\t\t= &quot;Y-m-d H:i:s&quot;;\t\t\t\t\t\t\t\/\/Default date format.\r\n\tconst\tc_cWMName\t\t= &quot;Damon V. Caskey&quot;;\t\t\t\t\t\t\/\/Default webmaster's name.\r\n\tconst\tc_cWMEmailIn\t= &quot;dvcask2@uky.edu&quot;;\t\t\t\t\t\t\/\/Default webmaster's incoming email address.\r\n\tconst\tc_cVFGuid\t\t= &quot;00000000-0000-0000-0000-000000000000&quot;;\t\/\/False guid.\r\n\t\t\t\t\t\r\n\t\/* Media &amp; Icons *\/\r\n\tconst\tc_cIconExcel\t= &quot;&lt;img src='\/media\/image\/icon_excel.png' alt='MS Excel document.' title='MS Excel document.' class='iconS'\/&gt;&quot;;\t\t\t\t\t\/\/MS Excel icon.\r\n\tconst\tc_cIconPDF\t\t= &quot;&lt;img src='\/media\/image\/icon_pdf.png' alt='PDF document.' title='PDF document.' class='iconS' \/&gt;&quot;;\t\t\t\t\t\t\t\/\/PDF icon.\r\n\tconst\tc_cIconPPT\t\t= &quot;&lt;img src='\/media\/image\/icon_powerpoint.png' alt='MS Powerpoint document.' title='MS Powerpoint document.' class='iconS' \/&gt;&quot;;\t\/\/MS Powerpoint icon.\r\n\tconst\tc_cIconWord\t\t= &quot;&lt;img src='\/media\/image\/icon_word.png' alt='MS Word document.' title='MS Word document.' class='iconS' \/&gt;&quot;;\t\t\t\t\t\/\/MS Word icon.\r\n\tconst\tc_cPathImage\t= &quot;\/media\/image\/&quot;;\t\t\t\t\t\t\t\/\/Default path for image files.\t\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Global constant set for PHP classes and functions.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[71],"tags":[299,234,298,286],"class_list":["post-4964","post","type-post","status-publish","format-standard","hentry","category-technology-temerity","tag-career-chaos","tag-coding-php","tag-technology-temerity","tag-uk-ehs"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5lNM5-1i4","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.caskeys.com\/dc\/wp-json\/wp\/v2\/posts\/4964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.caskeys.com\/dc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.caskeys.com\/dc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.caskeys.com\/dc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.caskeys.com\/dc\/wp-json\/wp\/v2\/comments?post=4964"}],"version-history":[{"count":13,"href":"https:\/\/www.caskeys.com\/dc\/wp-json\/wp\/v2\/posts\/4964\/revisions"}],"predecessor-version":[{"id":6226,"href":"https:\/\/www.caskeys.com\/dc\/wp-json\/wp\/v2\/posts\/4964\/revisions\/6226"}],"wp:attachment":[{"href":"https:\/\/www.caskeys.com\/dc\/wp-json\/wp\/v2\/media?parent=4964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.caskeys.com\/dc\/wp-json\/wp\/v2\/categories?post=4964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.caskeys.com\/dc\/wp-json\/wp\/v2\/tags?post=4964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}