Added support for Thunderball Lucky Dip
[mod_lotto.git] / mod_lotto.xml~
blob:a/mod_lotto.xml~ -> blob:b/mod_lotto.xml~
--- a/mod_lotto.xml~
+++ b/mod_lotto.xml~
@@ -1,1 +1,499 @@
+<?xml version="1.0" encoding="utf-8"?>
+<extension
+	type="module"
+	version="2.5"
+	client="site"
+	method="upgrade">
+	<name>LottoPredict</name>
+	<author>Ben Tasker</author>
+	<creationDate>July 2012</creationDate>
+	<license>GNU General Public License version 2</license>
+	<authorEmail>LottoPredict@bentasker.co.uk</authorEmail>
+	<authorUrl>bentasker.co.uk</authorUrl>
+	<version>1.0</version>
+	<description>A Module designed to show results from the UK National Lottery. Also allows users to generate Lucky Dips and to check their numbers against past draws</description>
+	<!-- Runs on install/uninstall/update; New in 1.6 -->
+	<!--<scriptfile>script.php</scriptfile>-->
+	<files>
+		<filename module="mod_lotto">mod_lotto.php</filename>
+		<filename>mod_lotto.xml</filename>
+		<folder>tmpl</folder>
+		<folder>assets</folder>
+		<filename>helper.php</filename>
+		
+		<filename>index.html</filename>				
+	</files>
+	<config>
+		<fields name="params">
+			<fieldset name="basic">
+				
+				<field
+					name="Size"
+					type="list"
+					default="small"
+					label="Icon Size"
+					description="The size to use when displaying results" >
+				
+						
+						<option 
+						value="normal">Normal</option>
+						
+						<option 
+						value="small">Small</option>
+						
+						<option 
+						value="xsmall">X-Small</option>
+											
+				</field>
+				
+				
+					<field
+					name="Ballstyle"
+					type="list"
+					default="plain"
+					label="Ball Style"
+					description="Should we use plain or multicoloured balls?" >
+				
+						
+						<option 
+						value="color">Colourful</option>
+						
+						<option 
+						value="plain">Plain</option>
+						
+											
+				</field>
+				
+				
+					<field
+					name="DispPurchaseLink"
+					type="list"
+					default="1"
+					label="Display Purchase Link"
+					description="Display a link allowing the user to buy tickets?" >
+				
+						
+						<option 
+						value="1">Yes</option>
+						
+						<option 
+						value="0">No</option>
+						
+											
+				</field>
+				
+				
+				<field
+					name="PurchaseLink"
+					type="text"
+					default="http://www.national-lottery.co.uk"
+					size="30"
+					label="Purchase URL"
+					description="Enter the URL to use when directing visitors to purchase tickets (you can use your affiliate ID if you have one)" />
+					
+					
+			
+			
+			</fieldset>
+				
+				
+				<fieldset
+				name="Lotto"
+				label="Lotto"
+				description="Settings relating to Lotto"
+				>
+				
+				
+				<field
+					name="DispLatestLottoResults"
+					type="list"
+					default="1"
+					label="Display Latest Lotto Results"
+					description="Should we display the latest lotto results?" >
+				
+						
+						<option 
+						value="1">Yes</option>
+						
+						<option 
+						value="0">No</option>
+						
+											
+				</field>
+				
+				
+				
+				
+				<field
+					name="LottoResultsDrawDays"
+					type="list"
+					default="Any"
+					label="Display latest results for"
+					description="Which draw days to show the latest Lotto Results for" >
+				
+						
+						<option 
+						value="Any">Any</option>
+						
+						<option 
+						value="Sun">Sun</option>
 
+						<option 
+						value="Mon">Mon</option>
+						
+						<option 
+						value="Tue">Tue</option>
+						
+						<option 
+						value="Wed">Wed</option>
+						
+						<option 
+						value="Thu">Thu</option>
+						
+						<option 
+						value="Fri">Fri</option>
+						
+						<option 
+						value="Sat">Sat</option>
+						
+											
+				</field>
+				
+				<field
+					name="DispLDs"
+					type="list"
+					default="0"
+					label="Automatically Generate A Lucky Dip"
+					description="Display a Lucky Dip to the user" >
+				
+						
+						<option 
+						value="1">Yes</option>
+						
+						<option 
+						value="0">No</option>
+						
+											
+				</field>
+				<field
+					name="GenLDs"
+					type="list"
+					default="0"
+					label="Display Lucky Dip Form"
+					description="Display a form allowing user to generate up to 10 Lucky Dips" >
+				
+						
+						<option 
+						value="1">Yes</option>
+						
+						<option 
+						value="0">No</option>
+						
+											
+				</field>
+				
+					<field
+					name="DispLottoResults"
+					type="list"
+					default="0"
+					label="Display Lotto Results for current month"
+					description="Display results of all Lotto Draws for this month" >
+				
+						
+						<option 
+						value="1">Yes</option>
+						
+						<option 
+						value="0">No</option>
+						
+											
+				</field>
+				<field
+					name="SelLottoResults"
+					type="list"
+					default="0"
+					label="Allow user to select month for results"
+					description="Display form allowing user to select month to display all Lotto Draw results for" >
+				
+						
+						<option 
+						value="1">Yes</option>
+						
+						<option 
+						value="0">No</option>
+						
+											
+				</field>
+				<field
+					name="CheckUserLotto"
+					type="list"
+					default="1"
+					label="Check User Numbers"
+					description="Display form allowing user to enter their Lotto Numbers for checking" >
+				
+						
+						<option 
+						value="1">Yes</option>
+						
+						<option 
+						value="0">No</option>
+						
+											
+				</field>
+				<field
+					name="divWidth"
+					type="Text"
+					default="289"
+					size="30"
+					label="Div Size"
+					description="Width of the coloured div surrounding the number checker in pixels." />
+			
+				
+				
+				</fieldset>
+			
+			
+			<fieldset
+				name="Thunderball"
+				label="Thunderball"
+				description="Settings relating to Thunderball Support"
+				>
+				
+					<field
+					name="DispLatestTBResults"
+					type="list"
+					default="1"
+					label="Display Latest Thunderball Results"
+					description="Should we display the latest Thunderball results?" >
+				
+						
+						<option 
+						value="1">Yes</option>
+						
+						<option 
+						value="0">No</option>
+						
+											
+				</field>
+				<field
+					name="TBResultsDrawDays"
+					type="list"
+					default="Any"
+					label="Display latest results for"
+					description="Which draw days to show the latest Lotto Results for" >
+				
+						
+						<option 
+						value="Any">Any</option>
+						
+						<option 
+						value="Sun">Sun</option>
+
+						<option 
+						value="Mon">Mon</option>
+						
+						<option 
+						value="Tue">Tue</option>
+						
+						<option 
+						value="Wed">Wed</option>
+						
+						<option 
+						value="Thu">Thu</option>
+						
+						<option 
+						value="Fri">Fri</option>
+						
+						<option 
+						value="Sat">Sat</option>
+						
+											
+				</field>
+				
+				</fieldset>
+				
+				
+					<fieldset
+				name="EuroMillions"
+				label="EuroMillions"
+				description="Settings relating to EuroMillions Results"
+				>
+				
+				<field
+					name="DispLatestEuroResults"
+					type="list"
+					default="1"
+					label="Display Latest Euro Results"
+					description="Should we display the latest EuroMillions results?" >
+				
+						
+						<option 
+						value="1">Yes</option>
+						
+						<option 
+						value="0">No</option>
+						
+											
+				</field>
+				<field
+					name="EuroResultsDrawDays"
+					type="list"
+					default="Any"
+					label="Display latest results for"
+					description="Which draw days to show the latest EuroMillions Results for" >
+				
+						
+						<option 
+						value="Any">Any</option>
+						
+						<option 
+						value="Sun">Sun</option>
+
+						<option 
+						value="Mon">Mon</option>
+						
+						<option 
+						value="Tue">Tue</option>
+						
+						<option 
+						value="Wed">Wed</option>
+						
+						<option 
+						value="Thu">Thu</option>
+						
+						<option 
+						value="Fri">Fri</option>
+						
+						<option 
+						value="Sat">Sat</option>
+						
+											
+				</field>
+				
+				
+				<field
+					name="DispELDs"
+					type="list"
+					default="0"
+					label="Automatically Generate A Lucky Dip"
+					description="Display a Lucky Dip to the user" >
+				
+						
+						<option 
+						value="1">Yes</option>
+						
+						<option 
+						value="0">No</option>
+						
+											
+				</field>
+				<field
+					name="GenELDs"
+					type="list"
+					default="0"
+					label="Display Lucky Dip Form"
+					description="Display a form allowing user to generate up to 10 Lucky Dips" >
+				
+						
+						<option 
+						value="1">Yes</option>
+						
+						<option 
+						value="0">No</option>
+						
+											
+				</field>
+				
+				<field
+					name="CheckUserEur"
+					type="list"
+					default="1"
+					label="Check User Numbers"
+					description="Display form allowing user to enter their EuroMillions Numbers for checking" >
+				
+						
+						<option 
+						value="1">Yes</option>
+						
+						<option 
+						value="0">No</option>
+						
+											
+				</field>
+				
+				<field
+					name="EurdivWidth"
+					type="Text"
+					default="289"
+					size="30"
+					label="Div Size"
+					description="Width of the coloured div surrounding the number checker in pixels." />
+			
+				
+			      </fieldset>
+			
+				<fieldset
+				name="API"
+				label="LottoPredict API"
+				description="Settings relating to the LottoPredict API"
+				>
+				
+				
+				<field
+					name="APIKEY"
+					type="text"
+					default="9c59922ab287d59d06011a4c91a21fcf"
+					size="30"
+					label="API Key"
+					description="Lotto Predict API Key. Change this if you decide to purchase a unique key" />
+				
+				
+				
+					<field
+					name="useLDAPI"
+					type="list"
+					default="0"
+					label="Use Lucky Dip API"
+					description="Use the LottoPredict API to generate Lucky Dips. Selecting No will utilise the built in logic, although numbers may be less random. Selecting Yes may adversely effect page load times." >
+				
+						
+						<option 
+						value="1">Yes</option>
+						
+						<option 
+						value="0">No</option>
+						
+											
+				</field>
+				</fieldset>
+				
+				
+				<fieldset
+				name="Caching"
+				label="Caching"
+				description="mod_lotto uses caching to avoid slow page load times. Setting any of these to 0 for a prolonged period may lead to your API Key being banned"
+				>
+				
+				
+				<field
+					name="shortcache"
+					type="text"
+					default="8"
+					size="10"
+					label="Ordinary Results"
+					description="Enter a cache time in hours, this affects most results that are likely to change (Does not effect number checking or Lucky Dips)" />
+					
+					<field
+					name="longcache"
+					type="text"
+					default="120"
+					size="10"
+					label="Historic Results"
+					description="Enter a cache time in hours. This will only effect the historic result checking functionality" />
+				
+				
+				</fieldset>
+
+		</fields>
+	</config>
+</extension>