config.inc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /* notes admin addresses */
  3. $mailto = 'php-gtk-webmaster@lists.php.net';
  4. $mailfrom = 'notes@gtk.php.net';
  5. /* filepaths */
  6. define('DB_DIR', '/local/Web/php-gtk-notes-db');
  7. /**
  8. * NOTE: We need a stable 'lastid' because the databases are out of
  9. * sync, both with each other and with the mail archives we're currently
  10. * using to monitor activity. If we 'lose' the mail part in the future
  11. * (which we probably will if it's all looking stable) we can move to
  12. * using sqlite_last_insert_rowid(). Just in case y'all wondered :)
  13. */
  14. $notesfile = DB_DIR.'/gtknotes.sqlite';
  15. $queuefile = DB_DIR.'/gtkqueue.sqlite';
  16. $blockfile = DB_DIR.'/gtkblocked.txt';
  17. $stats = DB_DIR.'/gtkstats.txt';
  18. $last_id = DB_DIR.'/gtklastid.txt';
  19. $okfile = DB_DIR.'/gtkgolive.txt';
  20. $mailfile = DB_DIR.'/gktmaillive.txt';
  21. /* db update checks. Settings of 15, 10 and 2 could have prevented phpdoc's last attack */
  22. $recent = strtotime("15 minutes ago");
  23. $veryrecent = strtotime("10 minutes ago");
  24. $likely = 2;
  25. /* some things need restricted access */
  26. $systems = array('andrei', 'sfox');
  27. $docteam = array('andrei', 'cweiske', 'sfox', 'anant', 'scottmattocks');
  28. $user = get_user();
  29. if ($user && isset($_COOKIE[$user])) {
  30. $mailto = $_COOKIE[$user];
  31. $notesfile = DB_DIR."/$user.notes.sqlite";
  32. $queuefile = DB_DIR."/$user.queue.sqlite";
  33. $last_id = DB_DIR."/$user.lastid.txt";
  34. }
  35. $mail = file_exists($mailfile) ? true : false;
  36. ?>