12345678910111213141516 |
- <?php
- function checkVersion()
- {
- $video = 1;
- $journal_buy = 1;
- $config = Dever::db('main/config')->one();
- if (isset($config['video']) && $config['video'] == 2) {
- $video = 2;
- } elseif (isset($config['version']) && Dever::input('version') && $config['version'] == Dever::input('version')) {
- $video = 2;
- $journal_buy = 2;
- }
- return (object) array('video' => $video, 'journal_buy' => $journal_buy);
- }
|