title = 'Admin'; $FRAME_OPTIONS->canonical_url = 'https://www.mikescher.com/admin'; $FRAME_OPTIONS->activeHeader = 'admin'; $FRAME_OPTIONS->addScript('https://code.jquery.com/jquery-latest.min.js', true); $FRAME_OPTIONS->addScript('/data/javascript/admin.js', true); $connected = true; try { $SITE->modules->Database(); } catch (Exception $e) { $connected = false; } $rok = ['result'=>'ok','message'=>'']; $consistency_blog = $rok; try { $consistency_blog = $SITE->modules->Blog()->checkConsistency(); } catch (Exception $e) { $consistency_blog = ['result'=>'ok', 'message'=>"$e"]; } $consistency_prog = $rok; try { $consistency_prog = $SITE->modules->Programs()->checkConsistency(); } catch (Exception $e) { $consistency_prog = ['result'=>'ok', 'message'=>"$e"]; } $consistency_euler = $rok; try { $consistency_euler = $SITE->modules->Euler()->checkConsistency(); } catch (Exception $e) { $consistency_euler = ['result'=>'ok', 'message'=>"$e"]; } $consistency_books = $rok; try { $consistency_books = $SITE->modules->Books()->checkConsistency(); } catch (Exception $e) { $consistency_books = ['result'=>'ok', 'message'=>"$e"]; } $consistency_egg = $rok; try { $consistency_egg = $SITE->modules->ExtendedGitGraph()->checkConsistency(); } catch (Exception $e) { $consistency_egg = ['result'=>'ok', 'message'=>"$e"]; } $consistency_progimg = $rok; try { $consistency_progimg = $SITE->modules->Programs()->checkThumbnails(); } catch (Exception $e) { $consistency_progimg = ['result'=>'ok', 'message'=>"$e"]; } $consistency_bookimg = $rok; try { $consistency_bookimg = $SITE->modules->Books()->checkThumbnails(); } catch (Exception $e) { $consistency_bookimg = ['result'=>'ok', 'message'=>"$e"]; } $consistency_aoc = $rok; try { $consistency_aoc = $SITE->modules->AdventOfCode()->checkConsistency(); } catch (Exception $e) { $consistency_aoc = ['result'=>'ok', 'message'=>"$e"]; } function dumpConsistency($c) { if ($c['result']==='ok') echo "OK"; else if ($c['result']==='warn') echo "".$c['message'].""; else echo "".$c['message'].""; } ?>

Admin


Could not connect to database
Version
Branch:
Commit:
Date:
Message:
Self test
Program thumbnails:
ExtendedGitGraph:
Book thumbnails:
Blog data:
Euler data:
AdventOfCode data:
Programs data:
Books data:

Update Program Thumbnails Update Book Thumbnails
Self IP Addr
Registered IP:
Current IP:
ExtendedGitGraph
AlephNote
Total users: modules->AlephNoteStatistics()->getTotalUserCount(); ?>
Users on latest version: modules->AlephNoteStatistics()->getUserCountFromLastVersion(); ?>
Active users: modules->AlephNoteStatistics()->getActiveUserCount(32); ?>

Show
Database not connected.
Statics
Blog entries: modules->Blog()->listAll()); ?>
Book entries: modules->Books()->listAll()); ?>
Euler entries: modules->Euler()->listAll()); ?>
Program entries: modules->Programs()->listAll()); ?>
Update entries: modules->UpdatesLog()->listUpdateData()); ?>
UpdatesLog
modules->UpdatesLog()->listProgramsInformation() as $info): ?>


Database not connected.
Highscores
modules->Highscores()->getAllGames() as $game): ?>
modules->Highscores()->getEntryCountFromGame($game['ID']); ?>
modules->Highscores()->getOrderedEntriesFromGame($game['ID'], 1)[0]; echo $hs['POINTS'] . ' (' . $hs['PLAYER'] . ') @ ' . $hs['TIMESTAMP']; ?>
modules->Highscores()->getNewestEntriesFromGame($game['ID'], 1)[0]['TIMESTAMP']; ?>

Database not connected.
Configuration
config as $key => $value) { if ($key === 'extendedgitgraph') continue; if (is_array($value)) echo '
' . $key . ' ' . json_encode($value, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) . '
' . "\n"; else echo '
' . $key . ' ' . nl2br(var_export($value, true)) . '
' . "\n"; } ?>
Configuration['extendedgitgraph']
config['extendedgitgraph'] as $key => $value) { if (is_array($value)) echo '
' . $key . ' ' . json_encode($value, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) . '
' . "\n"; else echo '
' . $key . ' ' . nl2br(var_export($value, true)) . '
' . "\n"; } ?>