array ('PLAYER_1','PLAYER_2'), 'card' => array ( 'background' => 'backgrounds/programmedsun.png', 'subtitle' => '', 'icon' => '', 'width' => '400', 'height' => '260' ), 'sort-key' => 'name', 'sort-order' => 'asc', 'animations' => 'on', 'regex' => 'cards/monopole-$0.txt' ); file_put_contents('settings.json',json_encode($settings)); } // we fetch settings.json content and put it into an array $settings = json_decode(file_get_contents('settings.json'),true); for ($i=0;$i $_POST['cardname'], 'id' => $_POST['cardid'], 'subtitle' => $settings['card']['subtitle'], 'background' => $settings['card']['background'], 'icon' => $settings['card']['icon'], 'regdate' => date('U') ) ); } if (isset($_POST['rcard'])) { $settings['rcard'] = explode(',',str_replace(' ','_',$_POST['rcard']));} if (isset($_POST['sort-key'])) { $settings['sort-key'] = $_POST['sort-key'];} if (isset($_POST['sort-order'])) { $settings['sort-order'] = $_POST['sort-order'];} if (isset($_POST['animations'])) { $settings['animations'] = $_POST['animations'];} if (isset($_POST['background'])) { $settings['card']['background'] = $_POST['background'];} if (isset($_POST['csubtitle'])) { $settings['card']['subtitle'] = $_POST['csubtitle'];} if (isset($_POST['width'])) { $settings['card']['width'] = $_POST['width'];} if (isset($_POST['height'])) { $settings['card']['height'] = $_POST['height'];} foreach (glob('import/*.txt') as $file) { // if there are files into import/ folder, we check them, the following code will store their data into cards.json // assuming the file content = the card ID and the file name = account name // you can change those informations later. $content = file_get_contents($file); $content = trim($content); $filename = basename($file,'.txt'); if (!preg_match('#"id":"'.$content.'"#',$json) && $content != '') { array_push( $cards, array( 'name' => $filename, 'id' => $content, 'subtitle' => $settings['card']['subtitle'], 'background' => $settings['card']['background'], 'icon' => $settings['card']['icon'], 'regdate' => date('U') ) ); } } function sortBy($field, &$array, $direction = 'asc') { usort($array, create_function('$a, $b', ' $a = $a["' . $field . '"]; $b = $b["' . $field . '"]; if ($a == $b) { return 0; } return ($a ' . ($direction == 'desc' ? '>' : '<') .' $b) ? -1 : 1; ')); return $array; } file_put_contents('cards.json',json_encode(sortBy($settings['sort-key'],$cards,$settings['sort-order']))); // after reading import/ folder, we write the new data into cards.json file_put_contents('settings.json',json_encode($settings)); // we update settings too ?> "Monopole." Project

Monopole. ∞ Project

Virtual eAMUSEMENT PASS changer made for #bemaniso tracker users. Made with ♥ by @skielred.

Name :

ID :

Background (you can use an external file like http://i.imgur.com/something.jpg) :

Subtitle :


Sample backgrounds (click to select) :

    '; } ?>

Leave empty for default background. Default background can be modified into settings.

Are you sure you ?

You are going to delete . This card will disapear forever ! (A very long time)

Warning : If you haven't deleted this card from the "import/" folder yet, if you delete it here the card will be added to the "cards.json" file again on the next page load.

Settings Because customizing your pass isn't enough, you have to customize your pass customizer too.


Add a Virtual Card because using text files is so 2015

Card ID (generate random)

DJ NAME


Default setings

Sorting key :

Sorting order :

Animations :


Cards

Default subtitle

Default background

Card files (avoid special characters such as ' or ", seperate each different file with a comma ,)


\n"; } else { fwrite($fp, "1:" . $_POST['id']); while (!feof($fp)) { echo fgets($fp, 128); } fclose($fp); } } elseif($slot == 'IIDX_P2') // edit p1 { $fp = fsockopen($IIDX_Location, $IIDX_Port, $errno, $errstr, 5); if (!$fp) { echo "$errstr ($errno)
\n"; } else { fwrite($fp, "2:" . $_POST['id']); while (!feof($fp)) { echo fgets($fp, 128); } fclose($fp); } } if($slot == 'SDVX') // edit p1 { $fp = fsockopen($SDVX_Location, $SDVX_Port, $errno, $errstr, 5); if (!$fp) { echo "$errstr ($errno)
\n"; } else { fwrite($fp, "1:" . $_POST['id']); while (!feof($fp)) { echo fgets($fp, 128); } fclose($fp); } } if($slot == 'POPN') // edit p1 { $fp = fsockopen($POPN_Location, $POPN_Port, $errno, $errstr, 5); if (!$fp) { echo "$errstr ($errno)
\n"; } else { fwrite($fp, "1:" . $_POST['id']); while (!feof($fp)) { echo fgets($fp, 128); } fclose($fp); } } } ?>

Step One: Select Machine


Step Two: Select Card