Initial working commit

This commit is contained in:
Aurelien Labate 2019-12-27 01:35:02 +01:00
commit d2b9582a65
13 changed files with 187 additions and 0 deletions

9
.gitmodules vendored Normal file
View File

@ -0,0 +1,9 @@
[submodule "src/SH4compatibilityTool"]
path = src/SH4compatibilityTool
url = gitea@gitea.planet-casio.com:Ziqumu/SH4compatibilityTool.git
[submodule "src/G1rFxiTools"]
path = src/G1rFxiTools
url = gitea@gitea.planet-casio.com:Ziqumu/G1rFxiTools.git
[submodule "src/EactMaker"]
path = src/EactMaker
url = gitea@gitea.planet-casio.com:Ziqumu/EactMaker.git

30
docker-compose.yml Normal file
View File

@ -0,0 +1,30 @@
version: "3.5"
services:
nginx:
image: nginx:latest
ports:
- "8080:80"
networks:
- php-fpm
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./src/EactMaker:/www/EactMaker/
- ./src/SH4compatibilityTool:/www/SH4compatibilityTool/
- ./src/G1rFxiTools:/www/G1rFxiTools/
- ./src/home:/www/home/
phpfpm-main:
build:
context: ./php-docker/
args:
PHP_VERSION: 7.4
networks:
- php-fpm
volumes:
- ./src/EactMaker:/www/EactMaker/
- ./src/SH4compatibilityTool:/www/SH4compatibilityTool/
- ./src/G1rFxiTools:/www/G1rFxiTools/
- ./src/home:/www/home/
networks:
php-fpm:

34
nginx.conf Normal file
View File

@ -0,0 +1,34 @@
server {
index index.php index.html;
server_name _;
root /www;
# Redirect old path to newer ones
rewrite ^/SH4compatibility/(.*)$ $scheme://$http_host/SH4compatibilityTool/$1 permanent;
rewrite ^/fxi2g1r/(.*)$ $scheme://$http_host/G1rFxiTools/FXItoG1R/$1 permanent;
rewrite ^/G1MtoG1R/(.*)$ $scheme://$http_host/G1rFxiTools/G1MtoG1R/$1 permanent;
rewrite ^/PicViewer/(.*)$ $scheme://$http_host/G1rFxiTools/PicViewer/$1 permanent;
# Tools homepage
rewrite ^(/_system/.*)$ /home/$1;
rewrite ^/?$ /home/index.php;
# Forward to the main php-fpm container
location ~ ^/(home|EactMaker|SH4compatibilityTool|G1rFxiTools)/.*\.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass phpfpm-main:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
# If we still have php there, that's an error!
location ~ \.php$ {
return 500;
}
}
# TODO add gd to php

8
php-docker/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
ARG PHP_VERSION
FROM php:${PHP_VERSION}-fpm
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd

1
src/EactMaker Submodule

@ -0,0 +1 @@
Subproject commit 89117494c4f30eeb35fbb699e924b72fac45a4bf

1
src/G1rFxiTools Submodule

@ -0,0 +1 @@
Subproject commit 94612d42415a40ae90ff2cb984b967e9ee3d3d83

@ -0,0 +1 @@
Subproject commit 0644716d15d6d792e59a09b6ab08f478944712b7

View File

@ -0,0 +1,7 @@
<div id="footer">
<?php echo $conf['footerMsg'];?>
</div>
<?php echo $conf['scripts'];?>
</body>
</html>

View File

@ -0,0 +1,38 @@
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $conf['headTitle'];?></title>
<link rel="canonical" href="<?php echo $conf['canonical'];?>"/>
<link rel="stylesheet" type="text/css" href="_system/style.css?100313" />
<?php echo $conf['header'];?>
<script type="text/javascript">//Google analytics
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-39078814-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="headerBar">
<a class="Cell CellL" href="<?php echo $conf['canonical'];?>">
<h1><?php echo $conf['title'];?></h1>
</a>
<a class="Cell CellR PClink" href="http://www.planet-casio.com/Fr/">
<strong>Planète Casio</strong>
</a>
<a class="Cell CellR casiopeiaLink" href="http://www.casiopeia.net/forum/">
<strong>Casiopeia</strong>
</a>
<a class="Cell CellR" href="http://wiki.planet-casio.com/">
<strong>Casio Universal Wiki</strong>
</a>
<div class="msg">
<?php echo $conf['msg'];?>
</div>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

View File

@ -0,0 +1 @@
.author{color:grey;font-style:italic;font-size:9pt;}

View File

@ -0,0 +1,23 @@
body{margin:0;padding:0;background-color:#f6f6f6;font-family:sans-serif;min-width:950px;font-size: 10pt;}
li{list-style: disc outside url("images/puce.png");}
a,a:link,a:visited,a:active{color:#56b2f2;text-decoration:none;}
a:hover{text-decoration:underline;}
/* header bar : title and links */
#headerBar{text-align:center;background-color:#ffffff;border:solid #a7d7f9 1px;width:95%;margin:15px auto;height:40px; box-shadow: 2px 2px 15px #d0d0d0;}
#headerBar div{margin:0;padding:0;}
#headerBar .Cell{height:40px;display:inline-block}
#headerBar .CellR{border-left:solid #a7d7f9 1px;float:right;}
#headerBar .CellL{border-right:solid #a7d7f9 1px;float:left;}
#headerBar a{color:#000;text-decoration:none;}
#headerBar a:hover{background-color:#ecfbfe;color:#120447; }
#headerBar .PClink:hover{color:#be1717;background-color:#fce9e9;border:solid #be1717 1px;margin:-1px -1px 0 0;}
#headerBar .casiopeiaLink:hover{color:#4283c6;background-color:#e2eef6;border:solid #4283c6 1px;margin:-1px -1px 0 0;}
#headerBar h1{font-weight:normal;font-family:sans-serif;font-size:26px;margin:5px 10px 0 10px;}
#headerBar strong{display:inline-block;font-weight:normal;font-size:18px;margin:9px 10px 0 10px;}
#headerBar .msg{height:40px; line-height:40px; text-align:center;}
.box{margin: 0 auto;box-shadow: 2px 2px 15px #d0d0d0;background-color:white;border:solid #a7d7f9 1px;text-align:center;width:95%;}
.subbox{margin: 0 auto;text-align:left;width:700px;}
#footer{font-size:10px;color:grey;float:right;width:100%;text-align:center;margin-top:15px;}
#footer a{color:grey;}
#footer a:hover{text-decoration:none;}

34
src/home/index.php Normal file
View File

@ -0,0 +1,34 @@
<?php
$conf['headTitle'] = 'Tools list';
$conf['title'] = $conf['headTitle'];
$conf['canonical'] = 'http://planet-casio.com/';
$conf['header'] = '<link rel="stylesheet" type="text/css" href="_system/style-index.css" />';
$conf['msg'] = '';
$conf['footerMsg'] = 'This website is managed by <a href="contact.php">Ziqumu</a><br />Also, Cake was here.';
$conf['scripts'] = '';
require_once('_system/header.php');?>
<div class="box">
<div class="subbox">
<p>This website regroup some web tools for casio calculators developed by different people.</p>
<ul>
<li><a href="http://wiki.planet-casio.com/">Casio Universal Wiki</a> : A french-english community documentation for calculators <span class="author">created by Helder7 and Ziqumu</span></li>
<li><a href="/CPluaEditor/">Classpad CPlua Editor Online</a> : Edit, create or import Classpad CPlua binary files (.xcp) <span class="author">created by Helder7</span></li>
<li><a href="/SpriteCoder/">Sprite Coder</a> : Generate your C array of a sprite with a .png .gif or .jpg image <span class="author">created by Smashmaster</span></li>
<li><a href="/HPPrimeNotes/">HP39gII/Prime Notes generator</a> : Generate Notes .hpnote files for hp39gII and Prime <span class="author">created by Helder7</span></li>
<li><a href="/accent-remover/">Online TXT Accent Remover V2</a> : Remove all accented characters from your txt file <span class="author">created by Helder7</span></li>
<li><a href="/PRGM2FUNC/">Cp PRGM 2 FUNC converter</a> : Convert Cp PRGM to FUNC and allow use extra commands <span class="author">created by Helder7</span></li>
<li><a href="/festivalgo/">Festiv'Algo</a> : Translate an algorithm from natural language to TI or casio basic language <span class="author">created by Nitrosax</span></li>
<li><a href="/EactMaker/">Eact Maker</a> : Create your Eact for Casio Calculators on your computer <span class="author">created by Helder7 and Ziqumu</span></li>
<li><a href="/SH4compatibility/">SH4 compatibility tool</a> : Make your addin compatible for Power Graphic 2 calculator (SH4) <span class="author">created by Ziqumu</span></li>
<li><a href="/fxi2g1r/">Fxi To g1r converter</a> : Convert your .fxi to a .g1r file readable by FA-124 <span class="author">created by Ziqumu</span></li>
<li><a href="/G1MtoG1R/">G1m To g1r converter</a> : Convert your .g1m to a .g1r file <span class="author">created by Ziqumu</span></li>
<li><a href="/PicViewer/">Picture viewer</a> : Extract a picture from a g1m/g1r file <span class="author">created by Ziqumu</span></li>
</ul>
</div>
</div>
<?php
require_once('_system/footer.php');
?>