Example #1
0
 public static function doInit()
 {
     $dataRootDir = join(DIRECTORY_SEPARATOR, [__DIR__, '..', 'data', '']);
     $htmlRootDir = join(DIRECTORY_SEPARATOR, [__DIR__, '..', 'public']);
     self::$title = 'graph.anime.plus';
     self::$mail = '*****@*****.**';
     self::$cronInterval = 5;
     self::$usersPerCronRun = 10;
     self::$usersPerCronRunMore = 20;
     self::$userQueuePath = $dataRootDir . 'queue-users.lst';
     self::$userQueueMinWait = 12 * 60 * 60;
     self::$userQueueMaxAttempts = 2;
     self::$mediaPerCronRun = 40;
     self::$mediaPerCronRunMore = 5;
     self::$mediaQueuePath = $dataRootDir . 'queue-media.lst';
     self::$mediaQueueMinWait = 7 * 24 * 60 * 60;
     self::$mediaQueueMaxAttempts = 2;
     self::$downloaderUserAgent = '';
     self::$downloaderProxy = null;
     self::$downloaderCookieFilePath = $dataRootDir . 'cookies.dat';
     self::$downloaderMaxParallelJobs = 2;
     self::$downloaderMaxTimeout = 10000;
     self::$downloaderUseMultiHandles = false;
     self::$mirrorEnabled = false;
     self::$mirrorPath = $dataRootDir . 'mirror';
     self::$mirrorPurgeFailures = true;
     self::$cacheEnabled = true;
     self::$cachePath = $dataRootDir . 'cache';
     self::$cacheTimeToLive = 24 * 60 * 60;
     self::$dbPath = $dataRootDir . 'db';
     self::$dbCount = 64;
     self::$transactionCommitFrequency = 20;
     self::$maxDbBindings = 50;
     self::$maxProcessingAttempts = 1;
     self::$bannedUsersListPath = $dataRootDir . 'banned-users.lst';
     self::$bannedGenresListPath = $dataRootDir . 'banned-genres.lst';
     self::$bannedCreatorsListPath = $dataRootDir . 'banned-creators.lst';
     self::$bannedGenresForRecsListPath = $dataRootDir . 'recs-banned-genres.lst';
     self::$bannedFranchiseCouplingListPath = $dataRootDir . 'banned-franchise-coupling.lst';
     self::$staticRecommendationListPath = $dataRootDir . 'static-recommendations.lst';
     self::$achievementsDefinitionsDirectory = $dataRootDir . 'achievement';
     self::$maxLogSize = 1024 * 1024;
     self::$keepOldLogs = false;
     self::$logsPath = $dataRootDir . 'logs';
     self::$globalsCachePath = $dataRootDir . 'globals-cache.json';
     self::$userQueueSizesPath = $dataRootDir . 'queue-sizes.json';
     self::$mediaDirectory = $htmlRootDir . DIRECTORY_SEPARATOR . 'media';
     self::$imageDirectory = $htmlRootDir . DIRECTORY_SEPARATOR . 'image';
     self::$mediaUrl = '/media/';
     self::$imageUrl = '/image/';
     self::$baseUrl = isset($_SERVER['HTTP_HOST']) ? 'http://' . $_SERVER['HTTP_HOST'] . '/' : 'http://graph.anime.plus/';
     self::$googleAnalyticsEnabled = true;
     self::$adminPassword = '';
     self::$maintenanceMessage = null;
     self::$noticeMessage = '<a href="http://myanimelist.net/clubs.php?cid=67199" target="_blank">JOIN OUR CLUB SENPAI!</a>';
     self::$sendReferrer = true;
     self::$enforcedDomain = null;
 }
Example #2
0
 public static function doInit()
 {
     $dataRootDir = join(DIRECTORY_SEPARATOR, [__DIR__, '..', 'data', '']);
     $htmlRootDir = join(DIRECTORY_SEPARATOR, [__DIR__, '..', 'public_html']);
     self::$version = '4.2.0';
     self::$mail = '*****@*****.**';
     self::$cronInterval = 5;
     //minutes
     self::$usersPerCronRun = 5;
     self::$enqueueEnabled = true;
     self::$userQueuePath = $dataRootDir . 'queue-users.lst';
     self::$userQueueMinWait = 24 * 60 * 60;
     //seconds
     self::$userQueueMaxAttempts = 20;
     self::$mediaPerCronRun = 5;
     self::$mediaQueuePath = $dataRootDir . 'queue-media.lst';
     self::$mediaQueueMinWait = 7 * 24 * 60 * 60;
     //seconds
     self::$mediaQueueMaxAttempts = 2;
     self::$downloaderUserAgent = 'MALgraph v' . self::$version;
     self::$downloaderProxy = null;
     self::$downloaderCookieFilePath = $dataRootDir . 'cookies.dat';
     self::$downloaderMaxParallelJobs = 10;
     self::$downloaderMaxTimeout = 10000;
     self::$downloaderUseMultiHandles = true;
     self::$mirrorEnabled = false;
     self::$mirrorPath = $dataRootDir . 'mirror';
     self::$mirrorPurgeFailures = true;
     self::$cacheEnabled = true;
     self::$cachePath = $dataRootDir . 'cache';
     self::$cacheTimeToLive = 24 * 60 * 60;
     self::$dbPath = $dataRootDir . 'db';
     self::$dbCount = 64;
     self::$transactionCommitFrequency = 20;
     self::$maxDbBindings = 50;
     self::$maxProcessingAttempts = 1;
     self::$bannedUsersListPath = $dataRootDir . 'banned-users.lst';
     self::$bannedGenresListPath = $dataRootDir . 'banned-genres.lst';
     self::$bannedCreatorsListPath = $dataRootDir . 'banned-creators.lst';
     self::$bannedGenresForRecsListPath = $dataRootDir . 'recs-banned-genres.lst';
     self::$bannedFranchiseCouplingListPath = $dataRootDir . 'banned-franchise-coupling.lst';
     self::$staticRecommendationListPath = $dataRootDir . 'static-recommendations.lst';
     self::$achievementsDefinitionsDirectory = $dataRootDir . 'achievements';
     self::$maxLogSize = 1024 * 1024 * 12;
     self::$keepOldLogs = false;
     self::$logsPath = $dataRootDir . 'logs';
     self::$globalsCachePath = $dataRootDir . 'globals-cache.json';
     self::$userQueueSizesPath = $dataRootDir . 'queue-sizes.json';
     self::$mediaDirectory = $htmlRootDir . DIRECTORY_SEPARATOR . 'media';
     self::$mediaUrl = '/media/';
     self::$baseUrl = isset($_SERVER['HTTP_HOST']) ? 'http://' . $_SERVER['HTTP_HOST'] . '/' : 'http://mal.oko.im/';
     self::$googleAnalyticsEnabled = true;
     self::$adminPassword = '******';
     self::$maintenanceMessage = null;
     self::$noticeMessage = null;
     self::$sendReferrer = true;
     self::$enforcedDomain = null;
 }