I would like to create a module addon for my site. The application is an email chess server (a sourceforge project), which I am now running as a php standalone.
The application uses its own mysql database, and requires its own login (cookie-based).
I am not asking anyone to do this work for me ... I would like to attempt it myself, but I am at a loss as to how to start..
Generally speaking, what major steps would be required to convert this to a php module?
Here is the index.php, as it stands now:
------------------------------
<?
session_start();
if (isset($user)&&isset($pass)){
$_POST['pwdPassword'] = $pass;
$_POST['txtNick'] = $user;
$_POST['ToDo'] = "Login";
session_register(_POST);
header("location: mainmenu.php");
exit;
}
require("config.php");
if ($_COOKIE["cookie_language"] != "")
$lang = $_COOKIE["cookie_language"];
if ($_GET["language"] != "")
$lang = $_GET["language"];
if ($lang=="")
$lang=$CFG_DEFAULT_LANGUAGE;
/* Language selection */
require "languages/".$lang.".inc.php";
<p align="center"><font face="Verdana" size="1" color="#AAAAAA">
CompWebChess is based on GNU <a href="http://webchess.sourceforge.net/">WebChess 0.8.3</a> and is published under the GNU GPL (GNU General Public License).<BR>
To read the full license, go to
Only registered users can see links on this board! Get registered or login to the forums!
Basically, the GPL says you are free<BR>
to distribute and edit the sourcecode, as long as you keep the rightful credits intact. Please read the full documents if<BR>
you have any questions. <BR></font></p>
</body>
</html>
----------------------------------
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum