Exemple #1
0
            }
        }
        $session->setCookie('DIR_STORE', $store, 0);
        break;
    case 'scripts':
        include_once '../include/lib/DriveReader.class.php';
        $tmp = explode('\\', $_GET['store']);
        $store = '';
        foreach ($tmp as $char) {
            if (trim($char) != '') {
                $store .= $char . '/';
            }
        }
        if (is_dir($store)) {
            $pspStore = new DriveReader($store);
            foreach ($pspStore->ListsFile() as $new) {
                echo $new . '<br>';
            }
        } else {
            echo 'Directory Not Found.';
        }
        break;
    default:
        include_once '../include/lib/Session.class.php';
        $session = new Session();
        ?>
        <title>Created Folder PSP Games</title>
		<script>
        $(function(){  
		      
            $('.btn_psp').click(function(){
 $tmp = explode('\\', $_GET['store']);
 $store = '';
 foreach ($tmp as $char) {
     if (trim($char) != '') {
         $store .= $char . '/';
     }
 }
 if (is_dir($store)) {
     $pspFolder = new DriveReader($store);
     echo 'Total Game: ' . $pspFolder->isFolder() . '<br/>';
     echo '==================================================' . '<br/>';
     foreach ($pspFolder->ListsFolder() as $folder) {
         $pspGame = new DriveReader($pspFolder->Path($folder));
         $foundCover = false;
         $isSize = 0;
         foreach ($pspGame->ListsFile() as $file) {
             $tmpInfo = pathinfo($file);
             if ($tmpInfo['extension'] == 'ico') {
                 if ($tmpInfo['filename'] != '[Icon]') {
                     $tmpNew = pathinfo($pspGame->Path($file));
                     $newName = $tmpNew['dirname'] . '/[Icon].ico';
                     rename($pspGame->Path($file), $newName);
                 }
             }
             if ($tmpInfo['extension'] == 'jpg' || $tmpInfo['extension'] == 'jpeg' || $tmpInfo['extension'] == 'png') {
                 if ($tmpInfo['filename'] != '[Cover]') {
                     $tmpNew = pathinfo($pspGame->Path($file));
                     $newName = $tmpNew['dirname'] . '/[Cover].' . $tmpInfo['extension'];
                     rename($pspGame->Path($file), $newName);
                 }
             }
Exemple #3
0
<?php 
$devfiles = new DriveReader("dev/");
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="70%" valign="top" style="padding-right:15px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr><td class="conner-lt"></td><td class="border-t"></td><td class="conner-rt"></td></tr>
        <tr><td class="border-l"></td>
          <td class="box_main"><div id="box_contents">&nbsp;</div></td>
        <td class="border-r"></td></tr>
        <tr><td class="conner-lb"></td><td class="border-b"></td><td class="conner-rb"></td></tr>
      </table>
    </td>
    <td width="30%" valign="top">
	   <?php 
foreach ($devfiles->ListsFile() as $dev) {
    ?>
      <div id="list_dev" onclick="devSelected(this,'<?php 
    echo $dev;
    ?>
')"><?php 
    $contents = file_get_contents('dev/' . $dev);
    $get_name = explode('<title>', $contents);
    if (count($get_name) != 1) {
        list($get_name) = explode('</title>', $get_name[1]);
    } else {
        $get_name = $dev;
    }
    $get_details = explode('<!--', $contents);
    if (count($get_details) != 1) {
        list($get_details) = explode('-->', $get_details[1]);
Exemple #4
0
<?php

include_once '../include/lib/DriveReader.class.php';
$data_avs_scripts = "#VideoSource\r\n";
$data_avs_scripts .= 'video=DirectShowSource("G:\\Detective Conan\\Detective Conan ~ Season 11 (TureVision) [TH]\\"+file, audio=false).ConvertToYV12()' . "\r\n\r\n";
$data_avs_scripts .= "#Crop\r\nvideo=Crop(video,10,4,-12,-2)\r\n\r\n#Resize\r\nvideo=Spline36Resize(video,852,480).Sharpen(0.2)\r\n\r\n";
$data_avs_scripts .= "#AudioSource\r\n" . 'audio=DirectShowSource("G:\\Detective Conan\\Detective Conan ~ Season 11 (TureVision) [TH]\\"+file,video=false)' . "\r\n\r\n";
$data_avs_scripts .= "#AudioDub\r\naudio=ConvertAudioTo16bit(audio)\r\nAudioDub(video,audio)";
$conan_list = new DriveReader("G:/Detective Conan/Detective Conan ~ Season 11 (TureVision) [TH]/");
foreach ($conan_list->ListsFile() as $file) {
    $tmpinfo = pathinfo($file);
    $write_file = $conan_list->Path($tmpinfo['filename'] . ".avs");
    if ($tmpinfo['extension'] !== 'avs') {
        //$is_file = fopen($write_file, 'w+');
        //fputs($is_file, "#FileSource\r\nfile = ".'"'.$file.'"'."\r\n\r\n".$data_avs_scripts);
        //fclose($is_file);
        echo $conan_list->TIS($file) . '<br/>';
    }
    if ($tmpinfo['extension'] == 'avs') {
        unlink($write_file);
    }
}