Ejemplo n.º 1
0
                $store .= $char . '/';
            }
        }
        $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(){  
		      
Ejemplo n.º 2
0
<?php

$modFolders = new DriveReader($GLOBALS['ROOT'] . 'module/');
$modFoundFolder = false;
foreach ($modFolders->ListsFolder() as $mod) {
    list($tmp, $name) = explode('mod_', $mod);
    if (trim($name) == trim($_GET['name'])) {
        $modFoundFolder = true;
        break;
    }
}
if ($modFoundFolder) {
    include_once 'module/' . $mod . '/' . $_GET['name'] . '.php';
} else {
    echo '<div id="exception">' . _EXCEPTION_MODULE . '</div>';
}
Ejemplo n.º 3
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)) {
         $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'];
Ejemplo n.º 4
0
		$(modoule).addClass('selected');
		$('#box_contents').html(preloading);
		$.ajax({ url:'http://it-my.selfip.info/dev/'+name,
			dataType: 'html',
			error: function(){ },
			success: function(data){		
				$('#box_contents').html(data);
				modSelected = modoule;
				preloadWait = false;
			},
		});
	}
}
</script>
<?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) {
    ?>
Ejemplo n.º 5
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);
    }
}