# HG changeset patch # User Matti Hamalainen # Date 1382450449 -10800 # Node ID 71c35d5302c20c45f8794cc9f8c03741a11d5f9c # Parent f364b50e07f7a429b50cea5d5ea03cf29b00338b More work on cleanups, and AJAX modularization. diff -r f364b50e07f7 -r 71c35d5302c2 admin.inc.php --- a/admin.inc.php Tue Oct 22 16:20:47 2013 +0300 +++ b/admin.inc.php Tue Oct 22 17:00:49 2013 +0300 @@ -1,5 +1,6 @@ \n"; +} +?> \ No newline at end of file diff -r f364b50e07f7 -r 71c35d5302c2 show.php --- a/show.php Tue Oct 22 16:20:47 2013 +0300 +++ b/show.php Tue Oct 22 17:00:49 2013 +0300 @@ -2,30 +2,10 @@ // // Entry display / show helper module // -$sessionType = "admin"; require "mconfig.inc.php"; require "msite.inc.php"; require "mcommon.inc.php"; -require "msession.inc.php"; - -// Check if we are allowed to execute -if (!stCheckHTTPS() || !stAdmSessionAuth(TRUE)) -{ - stSetupCacheControl(); - - stSessionEnd(SESS_ADMIN); - - stSetStatus(404, "Not Found"); - - cmPrintPageHeader("Error"); - echo "
". - "

Permission denied

\n". - "

You need to be logged in as administrator to access this data.

\n". - "

Click here for login form

\n". - "
\n"; - cmPrintPageFooter(); - exit; -} +require "majax.php"; stSetupCacheControl(); @@ -36,25 +16,43 @@ // Fetch non-"hardcoded" settings from SQL database stReloadSettings(); -cmPrintPageHeader("SHOW DISPLAY", "", FALSE); +cmPrintPageHeader("PARTY DISPLAY", "", FALSE); +stCommonAJAX("showajax.php", "show.php", TRUE); ?> -
+ -
+ + + \ No newline at end of file diff -r f364b50e07f7 -r 71c35d5302c2 vote.inc.php --- a/vote.inc.php Tue Oct 22 16:20:47 2013 +0300 +++ b/vote.inc.php Tue Oct 22 17:00:49 2013 +0300 @@ -1,5 +1,6 @@ - -