Created
March 3, 2010 21:07
-
-
Save natebenes/321024 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MODULE globalConfig | |
SAVE | |
! Project: Twitter.f90 | |
! Author: Nate Benes | |
! File: config.f90 | |
! Desc: A module to store things that need to be globally available | |
! Change these to suit your needs | |
! Your API Information (shh!) | |
CHARACTER(LEN=50), PARAMETER :: cfg_AppKey = "someValue" | |
CHARACTER(LEN=50), PARAMETER :: cfg_AppSecret = "someValue" | |
! Enable config files (overrides) | |
LOGICAL :: cfg_overrides = .TRUE. | |
! Debugging: | |
! Config files or overrides cannot set the | |
! debug level any higher than this. | |
! | |
! Debug Level: | |
! 0 = Production | |
! 1 = Severe Errors | |
! 2 = All Errors | |
! 3 = EVERYTHING (WILL print consumer/app secrets) | |
INTEGER :: cfg_debug = 2 | |
! This stuff down here is not worth reading anymore... | |
! These are filled automatically by the program | |
CHARACTER(LEN=50) :: cfg_ConsumerKey | |
CHARACTER(LEN=50) :: cfg_ConsumerSecret | |
! These are for other global stuff | |
! OS Detection: | |
! Define the target operating system: | |
! -1 = Try to detect | |
! 0 = reserved | |
! 1 = Windows | |
! 2 = Linux | |
! 3 = Mac (not yet implemented) | |
INTEGER :: cfg_os = -1 | |
! Safe Mode verifies dependencies | |
! (if it is set to TRUE it can override other settings) | |
! i.e. if you are on Windows make sure you have curl or wget.exe available | |
! before you try to call it. (recommended. | |
LOGICAL :: cfg_safeMode = .TRUE. | |
! Authentication Protocols: | |
! 1 = OAuth (Preferred) | |
! 2 = XAuth (not yet implemented) | |
! 3 = HTTP Basic Auth (really bad idea) | |
INTEGER :: cfg_AuthType | |
END MODULE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment