Muchas gracias, voy a ver si lo estudio y me entero un poco del asunto hehe
Gracias!
salu2
dew
Gracias!
salu2
dew
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menúif( !isset($_SERVER['HTTP_MOD_REWRITE']) ) $_SERVER['HTTP_MOD_REWRITE'] == 'Off';
if( !array_key_exists('HTTP_MOD_REWRITE', $_SERVER) ) $_SERVER['HTTP_MOD_REWRITE'] == 'Off';
// Insert the topic
$insert_topic = $this->DB->insert("forum_topics", array(
'topic_subject' => $subject,
'topic_by' => $poster,
'last_post_time' => $time,
'topic_forum' => $forum,
'is_sticky' => $sticky,
'is_closed' => $closed,
'is_global' => $global
));
// Insert the actual post
$insert_post = $this->DB->insert("forum_posts", array(
'post_content' => $content,
'post_by' => $poster,
'post_time' => $time,
'post_topic' => $topicid
));
// Update the forum count
$rows = $this->DB->update("forum_forums", array(
'total_topics' => "(`total_topics` + 1)",
'total_posts' => "(`total_posts` + 1)",
'last_post_id' => $lastpost_id,
'last_topic_id' => $topicid,
'last_topic_title' => $subject,
'last_post_time' => $time,
'last_post_poster' => $poster
), "`forum_id`='".$forum."'");
-- --------------------------------------------
-- Table structure for `forum_topic`
-- --------------------------------------------
DROP TABLE IF EXISTS `forum_topic`
CREATE TABLE `forum_topic` (
`topic_subject` varchar(100) NOT NULL, // varchar porque es una cadena de caracteres, ¿cierto?
`topic_by`,
`last_post_time`,
`topic_forum`,
`is_sticky`,
`is_closed`,
`is_global`,
PRIMARY KEY (``)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CitarNotice
Message: Undefined index: HTTP_MOD_REWRITE
Reporting File: application/core/Frostbite.php
Line: 53
Debugging:
Backtrace Level 1:
File: /home/website/public_html/index.php
Line: 39
Class: Application\Core\Frostbite
Function: Init
Function Args:
ARGS => Array (0)
(
)
Citar[Fri Apr 20 04:46:55 2012] [error] [client 192.168.0.10] PHP Fatal error: Uncaught exception 'PDOException' with message 'You cannot serialize or unserialize PDO instances' in C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\application\\core\\ Debug.php:146\nStack trace:\n#0 [internal function]: PDO->__sleep()\n#1 C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\application\\core\\ Debug.php(146): serialize(Array)\n#2 C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\application\\core\\ Debug.php(111): Application\\Core\\Debug->log_error()\n#3 C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\system\\core\\Commo n.php(63): Application\\Core\\Debug->trigger_error(2, 'date(): It is n...', 'C:\\Program File...', 48, Array)\n#4 [internal function]: php_error_handler(2, 'date(): It is n...', 'C:\\Program File...', 48, Array)\n#5 C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\application\\contro llers\\welcome.php(48): date('F j, Y, g:i a', '1324062007')\n#6 [internal function]: Welcome->index()\n#7 C:\\Program Files (x86)\\Apach in C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\application\\core\\ Debug.php on line 146
[Fri Apr 20 04:46:57 2012] [error] [client 192.168.0.10] PHP Fatal error: Uncaught exception 'PDOException' with message 'You cannot serialize or unserialize PDO instances' in C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\application\\core\\ Debug.php:146\nStack trace:\n#0 [internal function]: PDO->__sleep()\n#1 C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\application\\core\\ Debug.php(146): serialize(Array)\n#2 C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\application\\core\\ Debug.php(111): Application\\Core\\Debug->log_error()\n#3 C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\system\\core\\Commo n.php(63): Application\\Core\\Debug->trigger_error(2, 'date(): It is n...', 'C:\\Program File...', 48, Array)\n#4 [internal function]: php_error_handler(2, 'date(): It is n...', 'C:\\Program File...', 48, Array)\n#5 C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\application\\contro llers\\welcome.php(48): date('F j, Y, g:i a', '1324062007')\n#6 [internal function]: Welcome->index()\n#7 C:\\Program Files (x86)\\Apach in C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\application\\core\\ Debug.php on line 146
CitarFatal error: Uncaught exception 'PDOException' with message 'You cannot serialize or unserialize PDO instances' in /home/wowspain/public_html/application/core/Debug.php:146 Stack trace: #0 [internal function]: PDO->__sleep() #1 /home/wowspain/public_html/application/core/Debug.php(146): serialize(Array) #2 /home/wowspain/public_html/application/core/Debug.php(111): Application\Core\Debug->log_error() #3 /home/wowspain/public_html/system/core/Common.php(108): Application\Core\Debug->trigger_error(1, '
...', '/home/wowspain/...', 600, Array) #4 /home/wowspain/public_html/system/database/Driver.php(600): show_error('
...', false, 1) #5 /home/wowspain/public_html/system/database/Driver.php(107): System\Database\Driver->trigger_error() #6 /home/wowspain/public_html/application/library/Auth.php(227): System\Database\Driver->query('SELECT * FROM `...') #7 /home/wowspain/public_html/application/controllers/account.php(107): Application\Library\Auth->login('TEST', 'test') #8 [internal function]: Account in /home/wowspain/public_html/application/core/Debug.php on line 146
#include <stdio.h>
#include <conio.h>
#define exit 0
#define enter 1
main()
{
system("title Program Title ");
while (enter==1){
textcolor(70); clrscr();gotoxy(10,2);
textcolor(120); puts("\t **** My Program Title **** \t");
textcolor(70);
int tecla;
puts("\n\n\n\t\t <1> Option 1");
puts("\n\t\t <2> Option 2");
puts("\n\t\t <3> Option 3");
puts("\n\t\t <4> Option 4");
puts("\n\t\t <5> Option 5");
puts("\n\t\t <6> Option 6");
puts("\n\n\n\t\t <0> Exit");
gotoxy(25,24);puts("*** by ChazyTheBest ***");
textcolor(240);gotoxy(55,22); printf("> Count: "); printf(" <", tecla); textcolor(30);
tecla=getch();
switch (tecla){
int op;
case '1': textcolor(30);clrscr();gotoxy(15,2);textcolor(240);puts("\t ^-^ \t Press 1 - Menu\t ^-^\t");textcolor(30);puts("\n\n\t\t Text here...\n\n\t\t press one key..."); op=getch(); break;
case '2': textcolor(30);clrscr();gotoxy(15,2);textcolor(240);puts("\t ^-^ \t Press 2 - Menu\t ^-^\t");textcolor(30);puts("\n\n\t\t Text here...\n\n\t\t press one key..."); op=getch(); break;
case '3': textcolor(30);clrscr();gotoxy(15,2);textcolor(240);puts("\t ^-^ \t Press 3 - Menu\t ^-^\t");textcolor(30);puts("\n\n\t\t Text here...\n\n\t\t press one key..."); op=getch(); break;
case '4': textcolor(30);clrscr();gotoxy(15,2);textcolor(240);puts("\t ^-^ \t Press 4 - Menu\t ^-^\t");textcolor(30);puts("\n\n\t\t Text here...\n\n\t\t press one key..."); op=getch(); break;
case '5': textcolor(30);clrscr();gotoxy(15,2);textcolor(240);puts("\t ^-^ \t Press 5 - Menu\t ^-^\t");textcolor(30);puts("\n\n\t\t Text here...\n\n\t\t press one key..."); op=getch(); break;
case '6': textcolor(30);clrscr();gotoxy(15,2);textcolor(240);puts("\t ^-^ \t Press 6 - Menu\t ^-^\t");textcolor(30);puts("\n\n\t\t Text here...\n\n\t\t press one key..."); op=getch(); break;
case '0': return 0;break;
default: gotoxy(40,21);puts("fock ur focking fingers! only 0 to 6!!!"); getch(); enter==0; break;
}
}
getch();
}
ECHO OFF
CLS
:MENU
CLS
ECHO.
ECHO ...............................................
ECHO PRESS 1 or 2 to select your task, or 3 to EXIT.
ECHO ...............................................
ECHO.
ECHO 1 - Use Premium
ECHO 2 - Use Normal
ECHO 3 - EXIT
ECHO.
SET /P X=Type 1, 2, or 3, then press ENTER:
IF %X%==1 GOTO PREMIUM
IF %X%==2 GOTO NORMAL
IF %X%==3 GOTO EOF
:PREMIUM
CLS
ECHO This is the premium option
***TU CODIGO AKI***
PAUSE
GOTO MENU
:NORMAL
CLS
ECHO This is the normal option
***TU CODIGO AKI***
PAUSE
GOTO MENU