File: init.php

Recommend this page to a friend!
  Classes of Kemal GENIS  >  PHP Video Downloader Script  >  init.php  >  Download  
File: init.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Video Downloader Script
Discover and download a video using its page URL
Author: By
Last change:
Date: 1 year ago
Size: 577 bytes
 

Contents

Class file image Download
<?php
@header('Content-Type: text/html; charset=utf-8');

set_time_limit(1800);
ini_set('memory_limit', '-1');
error_reporting(false);

if(isset(
$_REQUEST['check_update'])){
    include_once
"updater.php";
}

require_once
"includes/conf.inc";
require_once
"includes/api_conf.inc";
require_once
"includes/func.inc";

error_reporting(false);

#Dizin Kontrolleri ve i?lemleri
if (!file_exists(DOWNLOAD_DIR)) {
   
mkdir(DOWNLOAD_DIR, 0777);
}
else if (!
is_writable(DOWNLOAD_DIR)) {
   
chmod(DOWNLOAD_DIR, 0777);
}

include_once
"classes/dbSqlite.class.php";
$db = new dbSqlite(DB_NAME);


For more information send a message to info at phpclasses dot org.