break;
case "post":
$doimage = 1;
$comment_handler =& xoops_gethandler('comment');
$add_userpost = false;
$call_approvefunc = false;
$call_updatefunc = false;
break;
case "post":
//myhack - Prevent Anonymous User Spam
//if a URLLINK is found in link, then dont let annonymous user post.
$myhack_comment = $_POST['com_text'];
$myhack_title = $_POST['com_title'];
//checking if poster is anonymous
if (!is_object($xoopsUser)) {
if (preg_match("/http/",$myhack_comment) || preg_match("/www/",$myhack_comment) || preg_match("/href/",$myhack_comment) || preg_match("/http/",$myhack_title) || preg_match("/www/",$myhack_title)) {
echo "Dont Spam Bitch!!!!!";
exit();
}
else {
}
}
//end of myhack
$doimage = 1;
$comment_handler =& xoops_gethandler('comment');
$add_userpost = false;
$call_approvefunc = false;
$call_updatefunc = false;
This summer, I have a site under xoops to report my holidays…
To carry out that, the XooFoo.org Laboratory prepared you a version Xoops 2.0.16 "Portable" functioning on an USB key with the miniservor Movamp and Firefox browser.
This preinstalled version is made up of the main modules (in French and English version) : edito, news, smartsection, cbb/newbb, myalbum, mylinks, wfdownloads, smartpartner, contact, sitemap, myiframe, tinyeditor, multimenu, backup, blockadmin, xoopsinfo, xoopscare, protector and xplorer. With this package, you will have all the elements necessary to build your website some is the place of your stay.
You wish to make discover Xoops with your friends? Do not hesitate to duplicate your USB key!
You can download this executable package (for Windows only) at this address.
Installation process (video of presentation on this link) :
In spite of the possibility of publishing and of amending the files using the Xplorer module, I recommend to you all the same to add certain soft in “portable” version, for example: Maxthon or Firefox or Opera as navigator Internet, PsPad Editor or NotePad ++ as editor of file, FastStone Image Viewer for the images, and 7Zip for the compression (or decompression) of files.
You here now fine loan to spend an excellent summer under the Xoopsien sun, without capture of head!!
The support of this package is ensured on the forum of the Laboratory XooFoo.org and on that of the French Community Xoops France.
<?php
$MysqlHost = "localhost"; // your mysql host
$MysqlKullanici = "root"; // your mysql user name
$MysqlSifre = ""; // your mysql password
$NukeVeritabaniAdi = "nuke"; // your nuke database name
$NukeVeritabaniOneki = "nuke"; // your nuke prefix
$XoopsVeritabaniAdi = "xoops"; // your xoops database name
$XoopsVeritabaniOneki = "xoops"; // your xoops prefix
$veriyolu = mysql_connect($MysqlHost, $MysqlKullanici, $MysqlSifre);
mysql_select_db($NukeVeritabaniAdi, $veriyolu);
$nukeuyelerinisor = mysql_query("SELECT * FROM ".$NukeVeritabaniOneki."_users ORDER BY user_id ASC");
while($nukeuyeleri = mysql_fetch_array($nukeuyelerinisor)) {
mysql_select_db($XoopsVeritabaniAdi);
$kayit = mysql_query("INSERT INTO ".$XoopsVeritabaniOneki."_users (uid, uname, email, user_regdate, pass, umode) VALUES('".$nukeuyeleri['user_id']."', '".$nukeuyeleri['username']."', '".$nukeuyeleri['user_email']."', '".time()."', '".$nukeuyeleri['user_password']."', 'flat');");
if($kayit) {
mysql_query("INSERT INTO ".$XoopsVeritabaniOneki."_groups_users_link (groupid, uid) VALUES ('2', '".$nukeuyeleri['user_id']."');");
echo $nukeuyeleri['username']." added successfully <br />";
}
else {
echo $nukeuyeleri['username']." passd because this id has already exists <br />";
}
}
echo "<br />That's all .... <a href="http://www.xoopshocasi.com">XoopSHoCasI</a>";
mysql_close($veriyolu);
?>
function &xoopsCodeDecode(&$text, $allowimage = 1)
{
$patterns = array();
$replacements = array();
function &xoopsCodeDecode(&$text, $allowimage = 1)
{
$patterns = array();
$replacements = array();
$patterns[] = "/XhiddencontentX(.*)X/hiddencontentX/sU";
if($_SESSION['xoopsUserId']) {
$replacements[] = '\1';
}
else {
$replacements[] = '<a href="'.XOOPS_URL.'/register.php"><img src="'.XOOPS_URL.'/hidden.gif" alt="Hidden Content" /></a>';
}
XhiddencontentX This is hidden content. You can see this when you register and login X/hiddencontentX
XhiddencontentX
X/hiddencontentX