Olrg
Местный
- Сообщения
- 111
- Реакции
- 16
pligin
Участник
- Сообщения
- 3.654
- Реакции
- 1.337
Скопируй одну из имеющихсяOlrg написал(а):Всем привет! Подскажите , как в ферме создать новую страницу?
Очень надо, я пробовал продублировать одну из строниц скрипта но у меня ни чего не вышло.
Подскажите как правильно добавить страницу в скрипт!
Буду благодарен любым толковым саветам!
Если она будет по адресу сайт/страница, то кидать нужно в pages, добавить в case файла index.php эту страницу по аналогии с теми, что уже есть.
Если она будет по адресу сайт/account/страница, то кидай в pages/account, в файле pages/account.php в case добавить страницу по аналогии с уже имеющимися.
В .htaccess добавить правило по аналогии с имеющимися.
Olrg
Местный
- Сообщения
- 111
- Реакции
- 16
pligin
Участник
- Сообщения
- 3.654
- Реакции
- 1.337
Содержимое .htaccess, account.php в студиюOlrg написал(а):Сделал, все так, pages/account/store1, в thaccess. Продудлировал, в account.php тоже продублировал.
Вкладка account/store1 открывается , но показывает то что находится в account/store.
Что может это значить?
Olrg
Местный
- Сообщения
- 111
- Реакции
- 16
accountadmin написал(а):Содержимое .htaccess, account.php в студию
Код:
<?PHP
######################################
# Скрипт Fruit Farm
# Автор Rufus
# ICQ: 819-374
# Skype: Rufus272
######################################
$_OPTIMIZATION["title"] = "Аккаунт";
$_OPTIMIZATION["description"] = "Аккаунт пользователя";
$_OPTIMIZATION["keywords"] = "Аккаунт, личный кабинет, пользователь";
# Блокировка сессии
if(!isset($_SESSION["user_id"])){ Header("Location: /"); return; }
//проверка на накрутку
$usirrd = $_SESSION["user_id"];
$db->Query("SELECT date_reg FROM yuzery_a WHERE id = '$usirrd' LIMIT 1");
$date = $db->FetchRow();
if(date("Ymd",time())==date("Ymd",$date)){
$db->Query("SELECT denga_b,denga_p,insert_sum,from_referals FROM yuzery_b WHERE id = '$usirrd' LIMIT 1");
$user_data = $db->FetchArray();
if($user_data["denga_b"]>100000 or $user_data["denga_p"]>100000){
if($user_data["insert_sum"]==0 and $user_data["from_referals"]==0){
$db->Query("UPDATE yuzery_a SET banned = '1' WHERE id = '$usirrd'");
echo 'Забанен за накрутку!';
@session_destroy();
}
}
}
//закончили
if(isset($_GET["sel"])){
$smenu = strval($_GET["sel"]);
switch($smenu){
case "bux4ik": include("pages/account/_bux4ik.php"); break; // Коробка удачи
case "orel": include("pages/account/_orel.php"); break; // Орел-решка
case "perevod": include("pages/account/send_money.php"); break; // Игра
case "grabej": include("pages/account/_bitva.php"); break; // Игра
case "auction": include("pages/account/_auc.php"); break; // Игра
case "knb": include("pages/account/_knb.php"); break; // КНБ
case "stats": include("pages/account/_story.php"); break; // Статистика
case "referals": include("pages/account/_referals.php"); break; // Рефералы
case "referer": include("pages/account/_referer.php"); break; // Реферер
case "farm": include("pages/account/_farm.php"); break; // Моя ферма
case "magazin": include("pages/account/_magazin.php"); break; // Магазин
case "store": include("pages/account/_store.php"); break; // Склад
case "store": include("pages/account/_store1.php"); break; // Склад
case "swap": include("pages/account/_swap.php"); break; // Обменный пункт
case "market": include("pages/account/_market.php"); break; // Рынок
case "payment": include("pages/account/_payment-card.php"); break; // Выплата WM
case "insertmenu": include("pages/account/_insertmenu.php"); break; // Пополнение баланса меню
case "insert":include("pages/account/_insert.php"); break; // Пополнение баланса
case "config": include("pages/account/_config.php"); break; // Настройки
case "chat": include("pages/account/_chat.php"); break; // Чат
case "bonus": include("pages/account/_bonus.php"); break; // Ежедневный бонус
case "set": include("pages/account/_set.php"); break; // Сэты
case "twentyone": include("pages/account/_twentyone.php"); break; // Игра Дватцать одно
case "thimble": include("pages/account/_thimble.php"); break; // Игра Наперстки
case "lottery": include("pages/account/_lottery.php"); break; // Лотерея
case "wall": include("pages/account/wall.php"); break; // Лотерея
case "pay_points": include("pages/account/_pay_points.php"); break; // Платежные баллы
case "webmoney": include("pages/account/_webmoney.php"); break; // webmoney
case "bezproigrisha": include("pages/account/_bezproigrisha.php"); break; // Беспроигрышная
case "status": include("pages/account/_status.php"); break; // Статусы
case "wheel": include("pages/account/_wheel.php"); break; // Колесо фортуны
case "support": include("pages/account/support.php"); break; // суппорт
case "pin": include("pages/account/_pin.php"); break; // суппорт
case "pm": include("pages/account/_pm.php"); break; // Внутренняя почта
case "exit": $user = $_SESSION["user"]; @session_unset(); $_SESSION["xak"]=1; setcookie('1', $user, time()+60*60*24*30, '/'); /* срок действия 30дней */ Header("Location: /"); return; break; // Выход
# Страница ошибки
default: @include("pages/_404.php"); break;
}
}else @include("pages/account/_user_account.php");
?>
Olrg
Местный
- Сообщения
- 111
- Реакции
- 16
Код:
AddDefaultCharset WINDOWS-1251
RewriteEngine On
RewriteBase /
RewriteRule ^perfectmoney(/?)+$ pay/perfect.php [L]
# Главная
RewriteRule ^index.html$ index.php&vzlom=ok [L]
# Почему мы
RewriteRule ^whywe(/?)+$ index.php?menu=whywe&vzlom=ok [L]
# Акции
RewriteRule ^actions(/?)+$ index.php?menu=actions&vzlom=ok [L]
# Правила
RewriteRule ^rules(/?)+$ index.php?menu=rules&vzlom=ok [L]
# Стена
RewriteRule ^wall(/?)+$ index.php?menu=account&sel=wall [L]
RewriteRule ^wall/([A-Za-z0-9]+)(/?)+$ index.php?menu=account&sel=wall&user=$1 [L]
# Чат
RewriteRule ^chat(/?)+$ index.php?menu=chat&vzlom=ok [L]
RewriteRule ^chat/(.*)/(.*)(/?)+$ index.php?menu=chat&t=$1&id=$2&vzlom=ok [L]
#Логин
RewriteRule ^login(/?)+$ index.php?menu=login&vzlom=ok [L]
# Новости
RewriteRule ^news(/?)+$ index.php?menu=news&vzlom=ok [L]
# О нас
RewriteRule ^about(/?)+$ index.php?menu=about&vzlom=ok [L]
# Бан
RewriteRule ^ban(/?)+$ index.php?menu=ban&vzlom=ok [L]
# Регистрация
RewriteRule ^signup/key/(.*)(/?)+$ index.php?menu=signup&key=$1&vzlom=ok [L]
RewriteRule ^signup(/?)+$ index.php?menu=signup&vzlom=ok [L]
# Восстановление пароля
RewriteRule ^recovery(/?)+$ index.php?menu=recovery&vzlom=ok [L]
# Последние выплаты
RewriteRule ^123323payments(/?)+$ index.php?menu=payments&vzlom=ok [L]
# Контакты
RewriteRule ^contacts(/?)+$ index.php?menu=contacts&vzlom=ok [L]
# Конкурс
RewriteRule ^crazy(/?)+$ index.php?menu=crazy&vzlom=ok [L]
# Пользователи
RewriteRule ^users/([0-9]+)(/?)+$ index.php?menu=users&page=$1&vzlom=ok [L]
RewriteRule ^users(/?)+$ index.php?menu=users&vzlom=ok [L]
# Аккаунт
RewriteRule ^account/support/([A-Za-z0-9-]+)(/?)+$ index.php?menu=account&sel=support&type=$1&vzlom=ok [L]
RewriteRule ^account/support/tiketid/([0-9]+)(/?)+$ index.php?menu=account&sel=support&tiketid=$1&vzlom=ok [L]
RewriteRule ^account/support(/?)+$ index.php?menu=account&sel=support&vzlom=ok [L]
RewriteRule ^account/pin(/?)+$ index.php?menu=account&sel=pin&vzlom=ok [L]
RewriteRule ^account/bux4ik(/?)+$ index.php?menu=account&sel=bux4ik&vzlom=ok [L]
RewriteRule ^account/wheel(/?)+$ index.php?menu=account&sel=wheel&vzlom=ok [L]
RewriteRule ^account/twentyone(/?)+$ index.php?menu=account&sel=twentyone&vzlom=ok [L]
RewriteRule ^account/perevod(/?)+$ index.php?menu=account&sel=perevod&vzlom=ok [L]
RewriteRule ^account/grabej(/?)+$ index.php?menu=account&sel=grabej&vzlom=ok [L]
RewriteRule ^account/auction(/?)+$ index.php?menu=account&sel=auction&vzlom=ok [L]
RewriteRule ^account/lottery/winners(/?)+$ index.php?menu=account&sel=lottery&winners&vzlom=ok [L]
RewriteRule ^account/lottery(/?)+$ index.php?menu=account&sel=lottery&vzlom=ok [L]
RewriteRule ^account/pay_points(/?)+$ index.php?menu=account&sel=pay_points [L]
RewriteRule ^account/knb(/?)+$ index.php?menu=account&sel=knb&vzlom=ok [L]
RewriteRule ^account/bonus(/?)+$ index.php?menu=account&sel=bonus&vzlom=ok [L]
RewriteRule ^account/set(/?)+$ index.php?menu=account&sel=set&vzlom=ok [L]
RewriteRule ^account/config(/?)+$ index.php?menu=account&sel=config&vzlom=ok [L]
RewriteRule ^account/insert(/?)+$ index.php?menu=account&sel=insert&vzlom=ok [L]
RewriteRule ^account/insert-menu(/?)+$ index.php?menu=account&sel=insertmenu&vzlom=ok [L]
RewriteRule ^account/insert/([0-9]+)(/?)+$ index.php?menu=account&sel=insert&id=$1&vzlom=ok [L]
RewriteRule ^account/payment(/?)+$ index.php?menu=account&sel=payment&vzlom=ok [L]
RewriteRule ^account/market(/?)+$ index.php?menu=account&sel=market&vzlom=ok [L]
RewriteRule ^account/swap(/?)+$ index.php?menu=account&sel=swap&vzlom=ok [L]
RewriteRule ^account/store(/?)+$ index.php?menu=account&sel=store&vzlom=ok [L]
RewriteRule ^account/store1(/?)+$ index.php?menu=account&sel=store1&vzlom=ok [L]
RewriteRule ^account/referals(/?)+$ index.php?menu=account&sel=referals&vzlom=ok [L]
RewriteRule ^account/referer(/?)+$ index.php?menu=account&sel=referer&vzlom=ok [L]
RewriteRule ^account/magazin(/?)+$ index.php?menu=account&sel=magazin&vzlom=ok [L]
RewriteRule ^competition(/?)+$ index.php?menu=competition&vzlom=ok [L]
RewriteRule ^competition/list(/?)+$ index.php?menu=competition&list&vzlom=ok [L]
RewriteRule ^account/exit(/?)+$ index.php?menu=account&sel=exit&vzlom=ok [L]
RewriteRule ^account(/?)+$ index.php?menu=account&vzlom=ok [L]
RewriteRule ^account/thimble(/?)+$ index.php?menu=account&sel=thimble&vzlom=ok [L]
RewriteRule ^account/bezproigrisha(/?)+$ index.php?menu=account&sel=bezproigrisha&vzlom=ok [L]
RewriteRule ^account/status(/?)+$ index.php?menu=account&sel=status&vzlom=ok&vzlom=ok [L]
RewriteRule ^account/status/([0-9]+)(/?)+$ index.php?menu=account&sel=status&id=$1&vzlom=ok&vzlom=ok [L]
RewriteRule ^account/webmoney(/?)+$ index.php?menu=account&sel=webmoney [L]
RewriteRule ^account/webmoney/add(/?)+$ index.php?menu=account&sel=webmoney&add=1 [L]
RewriteRule ^account/orel(/?)+$ index.php?menu=account&sel=orel [L]
RewriteRule ^account/pm(/?)+$ index.php?menu=account&sel=pm [L]
RewriteRule ^account/pm/inbox(/?)+$ index.php?menu=account&sel=pm&inbox [L]
RewriteRule ^account/pm/outbox(/?)+$ index.php?menu=account&sel=pm&outbox [L]
RewriteRule ^account/pm/referals(/?)+$ index.php?menu=account&sel=pm&referals [L]
RewriteRule ^account/pm/usersall(/?)+$ index.php?menu=account&sel=pm&usersall [L]
Olrg
Местный
- Сообщения
- 111
- Реакции
- 16
pligin
Участник
- Сообщения
- 3.654
- Реакции
- 1.337
Внимательнее нужно бытьOlrg написал(а):account
Код:<?PHP ###################################### # Скрипт Fruit Farm # Автор Rufus # ICQ: 819-374 # Skype: Rufus272 ###################################### $_OPTIMIZATION["title"] = "Аккаунт"; $_OPTIMIZATION["description"] = "Аккаунт пользователя"; $_OPTIMIZATION["keywords"] = "Аккаунт, личный кабинет, пользователь"; # Блокировка сессии if(!isset($_SESSION["user_id"])){ Header("Location: /"); return; } //проверка на накрутку $usirrd = $_SESSION["user_id"]; $db->Query("SELECT date_reg FROM yuzery_a WHERE id = '$usirrd' LIMIT 1"); $date = $db->FetchRow(); if(date("Ymd",time())==date("Ymd",$date)){ $db->Query("SELECT denga_b,denga_p,insert_sum,from_referals FROM yuzery_b WHERE id = '$usirrd' LIMIT 1"); $user_data = $db->FetchArray(); if($user_data["denga_b"]>100000 or $user_data["denga_p"]>100000){ if($user_data["insert_sum"]==0 and $user_data["from_referals"]==0){ $db->Query("UPDATE yuzery_a SET banned = '1' WHERE id = '$usirrd'"); echo 'Забанен за накрутку!'; @session_destroy(); } } } //закончили if(isset($_GET["sel"])){ $smenu = strval($_GET["sel"]); switch($smenu){ case "bux4ik": include("pages/account/_bux4ik.php"); break; // Коробка удачи case "orel": include("pages/account/_orel.php"); break; // Орел-решка case "perevod": include("pages/account/send_money.php"); break; // Игра case "grabej": include("pages/account/_bitva.php"); break; // Игра case "auction": include("pages/account/_auc.php"); break; // Игра case "knb": include("pages/account/_knb.php"); break; // КНБ case "stats": include("pages/account/_story.php"); break; // Статистика case "referals": include("pages/account/_referals.php"); break; // Рефералы case "referer": include("pages/account/_referer.php"); break; // Реферер case "farm": include("pages/account/_farm.php"); break; // Моя ферма case "magazin": include("pages/account/_magazin.php"); break; // Магазин case "store": include("pages/account/_store.php"); break; // Склад case "store": include("pages/account/_store1.php"); break; // Склад case "swap": include("pages/account/_swap.php"); break; // Обменный пункт case "market": include("pages/account/_market.php"); break; // Рынок case "payment": include("pages/account/_payment-card.php"); break; // Выплата WM case "insertmenu": include("pages/account/_insertmenu.php"); break; // Пополнение баланса меню case "insert":include("pages/account/_insert.php"); break; // Пополнение баланса case "config": include("pages/account/_config.php"); break; // Настройки case "chat": include("pages/account/_chat.php"); break; // Чат case "bonus": include("pages/account/_bonus.php"); break; // Ежедневный бонус case "set": include("pages/account/_set.php"); break; // Сэты case "twentyone": include("pages/account/_twentyone.php"); break; // Игра Дватцать одно case "thimble": include("pages/account/_thimble.php"); break; // Игра Наперстки case "lottery": include("pages/account/_lottery.php"); break; // Лотерея case "wall": include("pages/account/wall.php"); break; // Лотерея case "pay_points": include("pages/account/_pay_points.php"); break; // Платежные баллы case "webmoney": include("pages/account/_webmoney.php"); break; // webmoney case "bezproigrisha": include("pages/account/_bezproigrisha.php"); break; // Беспроигрышная case "status": include("pages/account/_status.php"); break; // Статусы case "wheel": include("pages/account/_wheel.php"); break; // Колесо фортуны case "support": include("pages/account/support.php"); break; // суппорт case "pin": include("pages/account/_pin.php"); break; // суппорт case "pm": include("pages/account/_pm.php"); break; // Внутренняя почта case "exit": $user = $_SESSION["user"]; @session_unset(); $_SESSION["xak"]=1; setcookie('1', $user, time()+60*60*24*30, '/'); /* срок действия 30дней */ Header("Location: /"); return; break; // Выход # Страница ошибки default: @include("pages/_404.php"); break; } }else @include("pages/account/_user_account.php"); ?>
Вместо
Код:
case "store": include("pages/account/_store.php"); break; // Склад
case "store": include("pages/account/_store1.php"); break; // Склад
Код:
case "store": include("pages/account/_store.php"); break; // Склад
case "store1": include("pages/account/_store1.php"); break; // Склад
Olrg
Местный
- Сообщения
- 111
- Реакции
- 16
Вот я болван! Большое человеческое спасибо!admin написал(а):Внимательнее нужно быть
Вместо
НужноКод:case "store": include("pages/account/_store.php"); break; // Склад case "store": include("pages/account/_store1.php"); break; // Склад
Код:case "store": include("pages/account/_store.php"); break; // Склад case "store1": include("pages/account/_store1.php"); break; // Склад
Ведь понимаю, что хоть запятую гдето не поставь и будет беда а все тороплюсь.
pligin
Участник
- Сообщения
- 3.654
- Реакции
- 1.337
Не нужно никуда спешить.Olrg написал(а):Вот я болван! Большое человеческое спасибо!
Ведь понимаю, что хоть запятую гдето не поставь и будет беда а все тороплюсь.