وهڵام: دامهزراندنی subforum ( ژێر مهکۆکان ) بۆ PunBB
فه رموو براكه م ئه م به ركه ى ئينستاله له جياتى ئه وه ى خؤت باربكه بيكيشه ئينستال ئه بيت
http://webchinupload.com/O72d4/248154467diary.rar
هه ركيشه يه كت هه بوو له خزمه تدام
مەکۆکانی وێبچن » PunBB ١،٢ » دامهزراندنی subforum ( ژێر مهکۆکان ) بۆ PunBB
دهبێت لە ژوورەوە بیت یان ببیت بە ئەندام بۆ ئهوهی بتوانیت وهڵام بنووسیت
فه رموو براكه م ئه م به ركه ى ئينستاله له جياتى ئه وه ى خؤت باربكه بيكيشه ئينستال ئه بيت
http://webchinupload.com/O72d4/248154467diary.rar
هه ركيشه يه كت هه بوو له خزمه تدام
براكــهم ئهم جاره ههر نهبوهوه بهم شێوهیه پیشانی دا ؟
براكــهم بارم كردوه و هێشتا نهم سڕیتهوه بزانه أینستۆڵ ئهبێت لات ؟
http://www.gulyswr.net/install_mod.php
بزانه ئه مه
<?php
/***********************************************************************/
// Some info about your mod.
$mod_title = 'Sub Forum Mod';
$mod_version = '1.0.9.4';
$release_date = '2005-10-24';
$author = 'pabb';
$author_email = '';
// One or more versions of PunBB that this mod works on. The version names must match exactly!
$punbb_versions = array('1.2.6','1.2.7','1.2.8','1.2.9','1.2.20', '1.2.15');
// Set this to false if you haven't implemented the restore function (see below)
$mod_restore = false;
// This following function will be called when the user presses the "Install" button.
function install()
{
global $db, $db_type, $pun_config;
switch ($db_type)
{
default:
$db->query('ALTER TABLE '.$db->prefix.'forums ADD COLUMN parent_forum_id INTEGER UNSIGNED DEFAULT 0;');
break;
}
}
// This following function will be called when the user presses the "Restore" button (only if $mod_uninstall is true (see above))
function restore()
{
global $db, $db_type, $pun_config;
}
/***********************************************************************/
// DO NOT EDIT ANYTHING BELOW THIS LINE!
// Circumvent maintenance mode
define('PUN_TURN_OFF_MAINT', 1);
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
// We want the complete error message if the script fails
if (!defined('PUN_DEBUG'))
define('PUN_DEBUG', 1);
// Make sure we are running a PunBB version that this mod works with
if(!in_array($pun_config['o_cur_version'], $punbb_versions))
exit('You are running a version of PunBB ('.$pun_config['o_cur_version'].') that this mod does not support. This mod supports PunBB versions: '.implode(', ', $punbb_versions));
$style = (isset($cur_user)) ? $cur_user['style'] : $pun_config['o_default_style'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo $mod_title ?> installation</title>
<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_config['o_default_style'].'.css' ?>" />
</head>
<body>
<div id="punwrap">
<div id="puninstall" class="pun" style="margin: 10% 20% auto 20%">
<?php
if (isset($_POST['form_sent']))
{
if (isset($_POST['install']))
{
// Run the install function (defined above)
install();
?>
<div class="block">
<h2><span>Installation successful</span></h2>
<div class="box">
<div class="inbox">
<p>Your database has been successfully prepared for <?php echo pun_htmlspecialchars($mod_title) ?>. See readme.txt for further instructions.</p>
</div>
</div>
</div>
<?php
}
else
{
// Run the restore function (defined above)
restore();
?>
<div class="block">
<h2><span>Restore successful</span></h2>
<div class="box">
<div class="inbox">
<p>Your database has been successfully restored.</p>
</div>
</div>
</div>
<?php
}
}
else
{
?>
<div class="blockform">
<h2><span>Mod installation</span></h2>
<div class="box">
<form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>?foo=bar">
<div><input type="hidden" name="form_sent" value="1" /></div>
<div class="inform">
<p>This script will update your database to work with the following modification:</p>
<p><strong>Mod title:</strong> <?php echo pun_htmlspecialchars($mod_title).' '.$mod_version ?></p>
<p><strong>Author:</strong> <?php echo pun_htmlspecialchars($author) ?> (<a href="mailto:<?php echo pun_htmlspecialchars($author_email) ?>"><?php echo pun_htmlspecialchars($author_email) ?></a>)</p>
<p><strong>Disclaimer:</strong> Mods are not officially supported by PunBB. Mods generally can't be uninstalled without running SQL queries manually against the database. Make backups of all data you deem necessary before installing.</p>
<?php if ($mod_restore): ?> <p>If you've previously installed this mod and would like to uninstall it, you can click the restore button below to restore the database.</p>
<?php endif; ?> </div>
<p><input type="submit" name="install" value="Install" /><?php if ($mod_restore): ?><input type="submit" name="restore" value="Restore" /><?php endif; ?></p>
</form>
</div>
</div>
<?php
}
?>
</div>
</div>
</body>
</html>برام ههر وهك و خۆیهتی
<?php
/***********************************************************************/
// Some info about your mod.
$mod_title = 'Sub Forum Mod';
$mod_version = '1.0.9.4';
$release_date = '2005-10-24';
$author = 'pabb';
$author_email = '';
// One or more versions of PunBB that this mod works on. The version names must match exactly!
$punbb_versions = array('1.2.6','1.2.7','1.2.8','1.2.9','1.2.20','1.2.15');
// Set this to false if you haven't implemented the restore function (see below)
$mod_restore = false;
// This following function will be called when the user presses the "Install" button.
function install()
{
global $db, $db_type, $pun_config;
switch ($db_type)
{
default:
$db->query('ALTER TABLE '.$db->prefix.'forums ADD COLUMN parent_forum_id INTEGER UNSIGNED DEFAULT 0;');
break;
}
}
// This following function will be called when the user presses the "Restore" button (only if $mod_uninstall is true (see above))
function restore()
{
global $db, $db_type, $pun_config;
}
/***********************************************************************/
// DO NOT EDIT ANYTHING BELOW THIS LINE!
// Circumvent maintenance mode
define('PUN_TURN_OFF_MAINT', 1);
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
// We want the complete error message if the script fails
if (!defined('PUN_DEBUG'))
define('PUN_DEBUG', 1);
// Make sure we are running a PunBB version that this mod works with
if(!in_array($pun_config['o_cur_version'], $punbb_versions))
exit('You are running a version of PunBB ('.$pun_config['o_cur_version'].') that this mod does not support. This mod supports PunBB versions: '.implode(', ', $punbb_versions));
$style = (isset($cur_user)) ? $cur_user['style'] : $pun_config['o_default_style'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo $mod_title ?> installation</title>
<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_config['o_default_style'].'.css' ?>" />
</head>
<body>
<div id="punwrap">
<div id="puninstall" class="pun" style="margin: 10% 20% auto 20%">
<?php
if (isset($_POST['form_sent']))
{
if (isset($_POST['install']))
{
// Run the install function (defined above)
install();
?>
<div class="block">
<h2><span>Installation successful</span></h2>
<div class="box">
<div class="inbox">
<p>Your database has been successfully prepared for <?php echo pun_htmlspecialchars($mod_title) ?>. See readme.txt for further instructions.</p>
</div>
</div>
</div>
<?php
}
else
{
// Run the restore function (defined above)
restore();
?>
<div class="block">
<h2><span>Restore successful</span></h2>
<div class="box">
<div class="inbox">
<p>Your database has been successfully restored.</p>
</div>
</div>
</div>
<?php
}
}
else
{
?>
<div class="blockform">
<h2><span>Mod installation</span></h2>
<div class="box">
<form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>?foo=bar">
<div><input type="hidden" name="form_sent" value="1" /></div>
<div class="inform">
<p>This script will update your database to work with the following modification:</p>
<p><strong>Mod title:</strong> <?php echo pun_htmlspecialchars($mod_title).' '.$mod_version ?></p>
<p><strong>Author:</strong> <?php echo pun_htmlspecialchars($author) ?> (<a href="mailto:<?php echo pun_htmlspecialchars($author_email) ?>"><?php echo pun_htmlspecialchars($author_email) ?></a>)</p>
<p><strong>Disclaimer:</strong> Mods are not officially supported by PunBB. Mods generally can't be uninstalled without running SQL queries manually against the database. Make backups of all data you deem necessary before installing.</p>
<?php if ($mod_restore): ?> <p>If you've previously installed this mod and would like to uninstall it, you can click the restore button below to restore the database.</p>
<?php endif; ?> </div>
<p><input type="submit" name="install" value="Install" /><?php if ($mod_restore): ?><input type="submit" name="restore" value="Restore" /><?php endif; ?></p>
</form>
</div>
</div>
<?php
}
?>
</div>
</div>
</body>
</html>كاك ئاسۆ ههر ئینستۆڵ نابێت ئێستا پهڕگهكهم نهسڕیوهتهوه
فهرموو سهیری بكـــه
http://www.gulyswr.net/install_mod.php
install_mod.php ی خاوێنی گهڵ پێوهكراوهكهم بۆ دابنێن، لام نییه.
براكه م ئه مه تاقى بكه ره وه بزانه كيشه ى نيه جونكه لاى خؤم ئيستا ئه مه هيج كيشه يه كى نيه
براكـــهم ههر وهك و خۆیهتی
دهست خۆش ههربژیت بهسوده.
دهبێت لە ژوورەوە بیت یان ببیت بە ئەندام بۆ ئهوهی بتوانیت وهڵام بنووسیت
مەکۆکانی وێبچن » PunBB ١،٢ » دامهزراندنی subforum ( ژێر مهکۆکان ) بۆ PunBB