mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
fix imdb in new structure
This commit is contained in:
@@ -209,6 +209,9 @@ $responseBody = $response->getBody();
|
||||
}
|
||||
if( $this->page[$wt] ){ //storecache
|
||||
if ($this->storecache) {
|
||||
if (!is_dir($this->cachedir)) {
|
||||
$mkdirResult = mkdir($this->cachedir, 0777, true);
|
||||
}
|
||||
$fp = fopen ("$this->cachedir/$this->imdbID.$wt", "w");
|
||||
fputs ($fp, $this->page[$wt]);
|
||||
fclose ($fp);
|
||||
|
||||
@@ -47,7 +47,7 @@ class imdb_config {
|
||||
$this->imdbsite = "www.imdb.com";
|
||||
// cachedir should be writable by the webserver. This doesn't need to be
|
||||
// under documentroot.
|
||||
$this->cachedir = './imdb/cache';
|
||||
$this->cachedir = ROOT_PATH . 'imdb/cache';
|
||||
//whether to use a cached page to retrieve the information if available.
|
||||
$this->usecache = true;
|
||||
//whether to store the pages retrieved for later use.
|
||||
@@ -58,10 +58,10 @@ class imdb_config {
|
||||
$this->imageext = '.jpg';
|
||||
// images are stored here after calling photo_localurl()
|
||||
// this needs to be under documentroot to be able to display them on your pages.
|
||||
$this->photodir = './imdb/images/';
|
||||
$this->photodir = ROOT_PATH . 'imdb/pic_imdb/';
|
||||
// this is the URL to the images, i.e. start at your servers DOCUMENT_ROOT
|
||||
// when specifying absolute path
|
||||
$this->photoroot = './imdb/images/';
|
||||
$this->photoroot = '/pic_imdb/';
|
||||
// TWEAKING OPTIONS:
|
||||
// limit the result set to X movies (0 to disable, comment out to use default of 20)
|
||||
$this->maxresults = 5000;
|
||||
|
||||
Reference in New Issue
Block a user