<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GL.IB.LY &#187; moodle_19</title>
	<atom:link href="http://gl.ib.ly/tag/moodle_19/feed/" rel="self" type="application/rss+xml" />
	<link>http://gl.ib.ly</link>
	<description>Thoughts on security, computing, business and stuff!</description>
	<lastBuildDate>Sun, 18 May 2014 11:51:56 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>All configuration variables in Moodle code?</title>
		<link>http://gl.ib.ly/uncategorized/2008/12/15/configuration-variables-moodle-code-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=configuration-variables-moodle-code-2</link>
		<comments>http://gl.ib.ly/uncategorized/2008/12/15/configuration-variables-moodle-code-2/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 07:10:15 +0000</pubDate>
		<dc:creator><![CDATA[tariq]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cfg]]></category>
		<category><![CDATA[configuration variables]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[moodle]]></category>
		<category><![CDATA[moodle_19]]></category>
		<category><![CDATA[one liners]]></category>
		<category><![CDATA[sort]]></category>

		<guid isPermaLink="false">http://gl.ib.ly/?p=89</guid>
		<description><![CDATA[<p>Sometimes Moodle introduces some nice new configuration variables and I like to make sure that I know what they are and where they are. So to begin my investigation without heading off to the web I use the following command<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://gl.ib.ly/uncategorized/2008/12/15/configuration-variables-moodle-code-2/">Read more &#8250;</a></div><!-- end of .read-more --></p><p>The post <a href="http://gl.ib.ly/uncategorized/2008/12/15/configuration-variables-moodle-code-2/">All configuration variables in Moodle code?</a> appeared first on <a href="http://gl.ib.ly">GL.IB.LY</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><span style="color: #545454;">Sometimes Moodle introduces some nice new configuration variables and I like to make sure that I know what they are and where they are. So to begin my investigation without heading off to the web I use the following command to get me a sorted list of the $CFG variables.</span></p>
<div class="serendipity_entry_extended" style="color: #545454;"><a id="extended"></a></p>
<div class="geshi"><span style="font-weight: bold; color: #c20cb9;">grep</span> -r &#8211;no-filename -o &#8216;\$CFG-&gt;<span style="font-weight: bold; color: #7a0874;">[</span>a-z<span style="font-weight: bold; color: #7a0874;">]</span><span style="font-weight: bold; color: #7a0874;">[</span>a-z<span style="font-weight: bold; color: #7a0874;">]</span>*&#8217; &lt;path_to_moodle&gt; | <span style="font-weight: bold; color: #c20cb9;">sort</span> -u</div>
<p>Good old trusty grep is used once again. We use grep to recursively, <i>-r</i>, look at all the files in the <i>path_to_moodle</i>. We tell grep to not print out the file names that patterns where found in with <i>&#8211;no-filename</i> and the <i>-o</i> option tells grep to output the exact pattern matched. The pattern itself is of the form: starts with <i>&#8220;$CFG-&gt;&#8221;</i> and is followed by one, or more lowercase characters. The pipe to <i>sort -u</i> sorts output and removes duplicate strings.</p>
<p>This command will produce something like the following list which I made using <a style="color: #7da939;" title="http://moodle.org" href="http://web.archive.org/web/20110315054119/http://gl.ib.ly/exit.php?url_id=11&amp;entry_id=8">Moodle</a> 1.9.2.</p>
<p><code>$CFG-&gt;admin<br />
$CFG-&gt;adminblocks<br />
$CFG-&gt;admineditalways<br />
$CFG-&gt;adminseesall<br />
$CFG-&gt;adminusehtmleditor<br />
$CFG-&gt;ajaxcapable<br />
$CFG-&gt;ajaxtestedbrowsers<br />
$CFG-&gt;allowcategorythemes<br />
$CFG-&gt;allowcoursethemes<br />
$CFG-&gt;allowemailaddresses<br />
$CFG-&gt;allowobjectembed<br />
$CFG-&gt;allowthemechangeonurl<br />
$CFG-&gt;allowunenrol<br />
$CFG-&gt;allowuserblockhiding<br />
$CFG-&gt;allowusermailcharset<br />
$CFG-&gt;allowuserthemes<br />
$CFG-&gt;allowvisiblecoursesinhiddencategories<br />
$CFG-&gt;allusersaresitestudents<br />
$CFG-&gt;alternateloginurl<br />
$CFG-&gt;an<br />
$CFG-&gt;apacheloguser<br />
$CFG-&gt;apachemaxmem<br />
$CFG-&gt;aspellextradicts<br />
$CFG-&gt;aspellpath<br />
$CFG-&gt;assignment<br />
$CFG-&gt;attemptuniqueid<br />
$CFG-&gt;auth<br />
$CFG-&gt;autolang<br />
$CFG-&gt;autologinguests<br />
$CFG-&gt;backup<br />
$CFG-&gt;block<br />
$CFG-&gt;blocks<br />
$CFG-&gt;blocksdrag<br />
$CFG-&gt;blog<br />
$CFG-&gt;bloglevel<br />
$CFG-&gt;bounceratio<br />
$CFG-&gt;cachetext<br />
$CFG-&gt;cachetype<br />
$CFG-&gt;calendar<br />
$CFG-&gt;chat<br />
$CFG-&gt;clamfailureonupload<br />
$CFG-&gt;config<br />
$CFG-&gt;cookiehttponly<br />
$CFG-&gt;cookiesecure<br />
$CFG-&gt;country<br />
$CFG-&gt;coursemanager<br />
$CFG-&gt;coursemanagers<br />
$CFG-&gt;coursesperpage<br />
$CFG-&gt;coursetheme<br />
$CFG-&gt;creatornewroleid<br />
$CFG-&gt;cronclionly<br />
$CFG-&gt;cronremotepassword<br />
$CFG-&gt;currenttextiscacheable<br />
$CFG-&gt;customersupportemail<br />
$CFG-&gt;customersupportemaildisplay<br />
$CFG-&gt;customscripts<br />
$CFG-&gt;data<br />
$CFG-&gt;datadir<br />
$CFG-&gt;dataroot<br />
$CFG-&gt;dbfamily<br />
$CFG-&gt;dbhost<br />
$CFG-&gt;dblogerror<br />
$CFG-&gt;dbname<br />
$CFG-&gt;dbpass<br />
$CFG-&gt;dbpersist<br />
$CFG-&gt;dbsessions<br />
$CFG-&gt;dbtype<br />
$CFG-&gt;dbuser<br />
$CFG-&gt;debug<br />
$CFG-&gt;debugdisplay<br />
$CFG-&gt;debugsmtp<br />
$CFG-&gt;decsbureauid<br />
$CFG-&gt;decsitemtypeid<br />
$CFG-&gt;defaultallowedmodules<br />
$CFG-&gt;defaultblocks<br />
$CFG-&gt;defaultcourseroleid<br />
$CFG-&gt;defaultfrontpageroleid<br />
$CFG-&gt;defaultrequestcategory<br />
$CFG-&gt;defaultuserroleid<br />
$CFG-&gt;deleteunconfirmed<br />
$CFG-&gt;denyemailaddresses<br />
$CFG-&gt;detect<br />
$CFG-&gt;digestmailtime<br />
$CFG-&gt;digestmailtimelast<br />
$CFG-&gt;directorypermissions<br />
$CFG-&gt;dirroot<br />
$CFG-&gt;disablebyteserving<br />
$CFG-&gt;disablecourseajax<br />
$CFG-&gt;disableglobalshack<br />
$CFG-&gt;disablegradehistory<br />
$CFG-&gt;disablemycourses<br />
$CFG-&gt;disablescheduledbackups<br />
$CFG-&gt;disablestatsprocessing<br />
$CFG-&gt;disableupgradelogging<br />
$CFG-&gt;disableuserimages<br />
$CFG-&gt;displaydebug<br />
$CFG-&gt;displayloginfailures<br />
$CFG-&gt;docroot<br />
$CFG-&gt;doctonewwindow<br />
$CFG-&gt;eaccelerator<br />
$CFG-&gt;editorbackgroundcolor<br />
$CFG-&gt;editordictionary<br />
$CFG-&gt;editorfontfamily<br />
$CFG-&gt;editorfontlist<br />
$CFG-&gt;editorfontsize<br />
$CFG-&gt;editorformatlist<br />
$CFG-&gt;editorhidebuttons<br />
$CFG-&gt;editorkillword<br />
$CFG-&gt;editorspelling<br />
$CFG-&gt;editorsrc<br />
$CFG-&gt;emailconnectionerrorsto<br />
$CFG-&gt;emoticons<br />
$CFG-&gt;enableajax<br />
$CFG-&gt;enablecourserequests<br />
$CFG-&gt;enableglobalsearch<br />
$CFG-&gt;enableglobalshack<br />
$CFG-&gt;enablegroupings<br />
$CFG-&gt;enablehtmlpurifier<br />
$CFG-&gt;enableoutcomes<br />
$CFG-&gt;enablerecordcache<br />
$CFG-&gt;enablerssfeeds<br />
$CFG-&gt;enablestats<br />
$CFG-&gt;enabletrusttext<br />
$CFG-&gt;enrol<br />
$CFG-&gt;errordocroot<br />
$CFG-&gt;exercise<br />
$CFG-&gt;extendedusernamechars<br />
$CFG-&gt;extratabs<br />
$CFG-&gt;filelifetime<br />
$CFG-&gt;filter<br />
$CFG-&gt;filterall<br />
$CFG-&gt;filtermatchoneperpage<br />
$CFG-&gt;filtermatchonepertext<br />
$CFG-&gt;filteruploadedfiles<br />
$CFG-&gt;footer<br />
$CFG-&gt;footerlinks<br />
$CFG-&gt;forcefirstname<br />
$CFG-&gt;forcelastname<br />
$CFG-&gt;forcelogin<br />
$CFG-&gt;forceloginforprofiles<br />
$CFG-&gt;forcetimezone<br />
$CFG-&gt;forgottenpasswordurl<br />
$CFG-&gt;formatstring<br />
$CFG-&gt;formatstringstriptags<br />
$CFG-&gt;forum<br />
$CFG-&gt;framename<br />
$CFG-&gt;frametarget<br />
$CFG-&gt;frontpage<br />
$CFG-&gt;frontpageloggedin<br />
$CFG-&gt;fullnamedisplay<br />
$CFG-&gt;gdversion<br />
$CFG-&gt;geoipfile<br />
$CFG-&gt;glossary<br />
$CFG-&gt;googlemapkey<br />
$CFG-&gt;grade<br />
$CFG-&gt;gradebookroles<br />
$CFG-&gt;gradeexport<br />
$CFG-&gt;gradehistorylifetime<br />
$CFG-&gt;gradepublishing<br />
$CFG-&gt;guestloginbutton<br />
$CFG-&gt;guestroleid<br />
$CFG-&gt;handlebounces<br />
$CFG-&gt;header<br />
$CFG-&gt;hiddenuserfields<br />
$CFG-&gt;hideactivitytypenavlink<br />
$CFG-&gt;hivecbid<br />
$CFG-&gt;hivehost<br />
$CFG-&gt;hivepassword<br />
$CFG-&gt;hivepath<br />
$CFG-&gt;hiveport<br />
$CFG-&gt;hiveprotocol<br />
$CFG-&gt;hiveusername<br />
$CFG-&gt;hotpot<br />
$CFG-&gt;hotpotismobile<br />
$CFG-&gt;hotpotroot<br />
$CFG-&gt;hotpottemplate<br />
$CFG-&gt;htmleditor<br />
$CFG-&gt;httpsthemewww<br />
$CFG-&gt;httpswwwroot<br />
$CFG-&gt;ignoresesskey<br />
$CFG-&gt;intcachemax<br />
$CFG-&gt;iplookup<br />
$CFG-&gt;javascript<br />
$CFG-&gt;journal<br />
$CFG-&gt;keeptagnamecase<br />
$CFG-&gt;lams<br />
$CFG-&gt;lang<br />
$CFG-&gt;langcache<br />
$CFG-&gt;langlist<br />
$CFG-&gt;langmenu<br />
$CFG-&gt;lastexpirynotify<br />
$CFG-&gt;lastnotifyfailure<br />
$CFG-&gt;latinexcelexport<br />
$CFG-&gt;ldap<br />
$CFG-&gt;libdir<br />
$CFG-&gt;local<br />
$CFG-&gt;locale<br />
$CFG-&gt;loginaspassword<br />
$CFG-&gt;loginhttps<br />
$CFG-&gt;loglifetime<br />
$CFG-&gt;logsql<br />
$CFG-&gt;longtimenosee<br />
$CFG-&gt;maildomain<br />
$CFG-&gt;mailnewline<br />
$CFG-&gt;mailprefix<br />
$CFG-&gt;max<br />
$CFG-&gt;maxbytes<br />
$CFG-&gt;maxeditingtime<br />
$CFG-&gt;memcachedhosts<br />
$CFG-&gt;memcachedpconn<br />
$CFG-&gt;message<br />
$CFG-&gt;messagewasjustemailed<br />
$CFG-&gt;messaging<br />
$CFG-&gt;migrated<br />
$CFG-&gt;minbounces<br />
$CFG-&gt;minpassworddigits<br />
$CFG-&gt;minpasswordlength<br />
$CFG-&gt;minpasswordlower<br />
$CFG-&gt;minpasswordnonalphanum<br />
$CFG-&gt;minpasswordupper<br />
$CFG-&gt;mnet<br />
$CFG-&gt;moddata<br />
$CFG-&gt;modpixpath<br />
$CFG-&gt;my<br />
$CFG-&gt;mymoodleredirect<br />
$CFG-&gt;noconvertjournals<br />
$CFG-&gt;nodefaultuserrolelists<br />
$CFG-&gt;noemailever<br />
$CFG-&gt;nofixday<br />
$CFG-&gt;nolastloggedin<br />
$CFG-&gt;nonmetacoursesyncroleids<br />
$CFG-&gt;noreplyaddress<br />
$CFG-&gt;notifyloginfailures<br />
$CFG-&gt;notifyloginthreshold<br />
$CFG-&gt;notloggedinroleid<br />
$CFG-&gt;old<br />
$CFG-&gt;opentogoogle<br />
$CFG-&gt;os<br />
$CFG-&gt;ostype<br />
$CFG-&gt;pagepath<br />
$CFG-&gt;pagetheme<br />
$CFG-&gt;passwordpolicy<br />
$CFG-&gt;passwordsaltmain<br />
$CFG-&gt;pathtoclam<br />
$CFG-&gt;pathtodu<br />
$CFG-&gt;perfdebug<br />
$CFG-&gt;pixpath<br />
$CFG-&gt;preferlinegraphs<br />
$CFG-&gt;prefix<br />
$CFG-&gt;preventaccesstohiddenfiles<br />
$CFG-&gt;protectusernames<br />
$CFG-&gt;proxyhost<br />
$CFG-&gt;proxypassword<br />
$CFG-&gt;proxyport<br />
$CFG-&gt;proxytype<br />
$CFG-&gt;proxyuser<br />
$CFG-&gt;qtype<br />
$CFG-&gt;quarantinedir<br />
$CFG-&gt;quiz<br />
$CFG-&gt;rcache<br />
$CFG-&gt;rcachettl<br />
$CFG-&gt;recaptchaprivatekey<br />
$CFG-&gt;recaptchapublickey<br />
$CFG-&gt;registerauth<br />
$CFG-&gt;registered<br />
$CFG-&gt;release<br />
$CFG-&gt;repository<br />
$CFG-&gt;repositoryactivate<br />
$CFG-&gt;repositorywebroot<br />
$CFG-&gt;resource<br />
$CFG-&gt;resourcetrimlength<br />
$CFG-&gt;respectsessionsettings<br />
$CFG-&gt;restrictbydefault<br />
$CFG-&gt;restrictmodulesfor<br />
$CFG-&gt;rolesactive<br />
$CFG-&gt;runclamonupload<br />
$CFG-&gt;running<br />
$CFG-&gt;scorm<br />
$CFG-&gt;search<br />
$CFG-&gt;session<br />
$CFG-&gt;sessioncookie<br />
$CFG-&gt;sessioncookiepath<br />
$CFG-&gt;sessiontimeout<br />
$CFG-&gt;showblocksonmodpages<br />
$CFG-&gt;showcrondebugging<br />
$CFG-&gt;showcronsql<br />
$CFG-&gt;siteblocksadded<br />
$CFG-&gt;siteidentifier<br />
$CFG-&gt;sitemailcharset<br />
$CFG-&gt;sitepolicy<br />
$CFG-&gt;slasharguments<br />
$CFG-&gt;smartpix<br />
$CFG-&gt;smtphosts<br />
$CFG-&gt;smtpmaxbulk<br />
$CFG-&gt;smtppass<br />
$CFG-&gt;smtpuser<br />
$CFG-&gt;sso<br />
$CFG-&gt;statscatdepth<br />
$CFG-&gt;statsfirstrun<br />
$CFG-&gt;statsmaxruntime<br />
$CFG-&gt;statsrolesupgraded<br />
$CFG-&gt;statsruntimestarthour<br />
$CFG-&gt;statsruntimestartminute<br />
$CFG-&gt;statsuserthreshold<br />
$CFG-&gt;stringfilters<br />
$CFG-&gt;stylesheets<br />
$CFG-&gt;supportemail<br />
$CFG-&gt;supportname<br />
$CFG-&gt;supportpage<br />
$CFG-&gt;tagsort<br />
$CFG-&gt;template<br />
$CFG-&gt;textfilters<br />
$CFG-&gt;textfilterx<br />
$CFG-&gt;theme<br />
$CFG-&gt;themedir<br />
$CFG-&gt;themelist<br />
$CFG-&gt;themeorder<br />
$CFG-&gt;themewww<br />
$CFG-&gt;timezone<br />
$CFG-&gt;tracksessionip<br />
$CFG-&gt;type<br />
$CFG-&gt;unicodecleanfilename<br />
$CFG-&gt;unicodedb<br />
$CFG-&gt;unzip<br />
$CFG-&gt;upgrade<br />
$CFG-&gt;usepaypalsandbox<br />
$CFG-&gt;usesid<br />
$CFG-&gt;usetags<br />
$CFG-&gt;version<br />
$CFG-&gt;wiki<br />
$CFG-&gt;wordlist<br />
$CFG-&gt;workshop<br />
$CFG-&gt;wwwdir<br />
$CFG-&gt;wwwroot<br />
$CFG-&gt;xml<br />
$CFG-&gt;xmldbdisablecommentchecking<br />
$CFG-&gt;xmldbdisablenextprevchecking<br />
$CFG-&gt;xmldbreconstructprevnext<br />
$CFG-&gt;xmlstrictheaders<br />
$CFG-&gt;zip</code></div>
<p>The post <a href="http://gl.ib.ly/uncategorized/2008/12/15/configuration-variables-moodle-code-2/">All configuration variables in Moodle code?</a> appeared first on <a href="http://gl.ib.ly">GL.IB.LY</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://gl.ib.ly/uncategorized/2008/12/15/configuration-variables-moodle-code-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
