Exemplo n.º 1
0
function storeImagePathsToDisk($panelsDir, $outputDir, $pos)
{
    $allfiles = removeDots(scandir($panelsDir . $pos));
    $serializedPaths = serialize($allfiles);
    $fp = fopen($outputDir . $pos . "Paths.txt", "w");
    fwrite($fp, $serializedPaths);
    fclose($fp);
}
Exemplo n.º 2
0
function storeTLImagePathsToDisk()
{
    $allfiles = removeDots(scandir("panels/topleft/"));
    $serializedPaths = serialize($allfiles);
    $fp = fopen("serializedTLPaths.txt", "w");
    fwrite($fp, $serializedPaths);
    fclose($fp);
}
Exemplo n.º 3
0
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
$IN_DINOREMIX = true;
require_once "utils.php";
$panelsDir = "panels/";
// Get permutation information
$comicsfiles = removeDots(scandir("panels/topleft"));
$numComics = sizeof($comicsfiles);
$numPerms = number_format(pow($numComics, 6) + pow($numComics, 3) + pow($numComics, 2));
$lockClasses = array();
$imgFileNames = array();
$posAbbrs = array(0 => "tl", "tm", "tr", "bl", "bm", "br");
$posNums = array();
$altText = "";
// Check each panel to see if it's locked
foreach ($posAbbrs as $key => $pos) {
    $fullName = posAbbrToFull($pos);
    if (isset($_GET[$pos])) {
        // Panel is locked
        $imgFileNames[$pos] = "comic2-" . $_GET[$pos] . "-" . $fullName . ".png";
        $lockClasses[$pos] = "locked";
        $posNums[$pos] = $_GET[$pos];