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
pip install sermon-audio |
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
import SermonAudioAPI | |
api = SermonAudioAPI('username', 'password') | |
# There are only a few categories you can search for: | |
# speaker | |
# eventtype | |
# series | |
# year |
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
# tutorial/models.py | |
class Person(models.Model): | |
name = models.CharField(verbose_name="full name") |
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
<?php | |
error_reporting (E_ALL ^ E_NOTICE); | |
session_start(); | |
require "./includes/class.pageClass.php"; | |
require "./includes/class.mailForm.php"; | |
require "./includes/inc.dbConnection.php"; | |
$page = new Page; | |
$page->Debug(); |
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
<?php | |
//we want to know what folder the script resides in (because I don't want to see index.php when I go to the home folder | |
$relativeLinks = "http://". $_SERVER['HTTP_HOST'] . "/" .substr(dirname($_SERVER['PHP_SELF']), strpos(dirname($_SERVER['PHP_SELF']), "/")+1) ; | |
//figure out admin links | |
$links = ""; | |
$dumbLinks = ""; | |
if ($_COOKIE['loggedin'] == "yes") //make sure admins have priority | |
{ |
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
<?php | |
class Page | |
{ | |
//add a private called leader that is an instance of the leader class | |
public $title; | |
public $content; | |
public $script; | |
public $debug = false; //used for development used in Debug() | |
private $loggedIn = false; | |
public $contentHeading; |
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
<?php | |
error_reporting (E_ALL ^ E_NOTICE); | |
session_start(); | |
include "./includes/class.pageClass.php"; | |
require "./includes/class.requiredField.php"; | |
require "./includes/inc.functions.php"; | |
require "./includes/inc.dbConnection.php"; | |
$page = new Page; | |
$page->Debug(); |