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 | |
ini_set('default_charset', 'UTF-8'); | |
$debug = 1; | |
$debug_cookie = 0; | |
$mode = NULL; | |
$matrikel = NULL; | |
$password = NULL; |
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 | |
ini_set('default_charset', 'UTF-8'); | |
$debug = 1; | |
$mode = NULL; | |
function fetchsite($url = NULL, $matrikel = NULL, $password = NULL) { | |
global $debug, $mode; |
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 | |
ini_set('default_charset', 'UTF-8'); | |
$debug = 1; | |
$mode = NULL; | |
function fetchsite($url = NULL, $matrikel = NULL, $password = NULL) { | |
global $debug, $mode; |
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
def new_entry(request): | |
format = "json" | |
if ('format' in request.POST): | |
format = request.POST['format'] | |
if ('submit' in request.POST): | |
# gives us a json: { "text" : "Dies ist eine Meldung", "isPublic" : 1 } | |
# entry_text = | |
# entry_isPublic = | |
# entry_published = datetime.now() | |
# -> save |