Szukaj w:
.

 Zobacz Temat

1 2 3 »
#106213 18.01.2010 08:18:41 - RE: Zarządzanie emot -ami
Avatar Użytkownika
Ostrzeżeń: 0
Postów: 81
Post napisano: 18.01.2010 08:18:41
Po zamienieniu kodu w maincore wyskakuje mi taki błąd:
Fatal error: Cannot redeclare displaysmileys() (previously declared in /home/freehost/t/w/twilightfan/www/maincore.php:368) in /home/freehost/t/w/twilightfan/www/maincore.php on line 423

Nie ma pliku install.php w paczce xD
Wyślij Prywatną Wiadomość
#106215 18.01.2010 08:44:31 - RE: Zarządzanie emot -ami
Avatar Użytkownika
Ostrzeżeń: 0
Postów: 1598
Post napisano: 18.01.2010 08:44:31
Zdarzają się pomyłki ;]
W dodatkowych stronach daj podgląd na ten kod:
<?php
$result = dbquery("CREATE TABLE ".$db_prefix."smileys (
  smiley_id smallint(5) unsigned NOT NULL auto_increment,
  smiley_code varchar(50) NOT NULL,
  smiley_image varchar(100) NOT NULL,
  smiley_text varchar(100) NOT NULL,
  PRIMARY KEY (smiley_id)
) TYPE=MyISAM;");
if ($result) {
  echo "Smiley table was created<br>";
  $smileys = array(
   array(":D", "biggrin.gif", "biggrin"),
   array("B)", "cool.gif", "cool"),
   array(":)", "happy.gif", "happy"),
   array(":@", "mad.gif", "mad"),
   array(":p", "razz.gif", "razz"),
   array(":(", "sad.gif", "sad"),
   array("*yes*", "yes.gif", "yes"),
   array("*no*", "no.gif", "no"),
   array("*dull*", "dull.gif", "dull"),
   array(":?", "confused.gif", "confused"),
   array(":o", "embarrassed.gif", "embarrassed"),
   array("*eek*", "eek.gif", "eek"),
   array("*rolleyes*", "rolleyes.gif", "rolleyes"),
   array(";)", "wink.gif", "wink"),
   array("*rofl*", "rofl.gif", "rofl"),
   array("o_O", "o_O.gif", "o_O"),
   array("*annoy*", "annoy.gif", "annoy"),
   array("*bye*", "bye.gif", "bye"),
   array("*clap*", "clap.gif", "clap"),
   array("*comfort*", "comfort.gif", "comfort"),
   array("*dog*", "dog.gif", "dog"),
   array("*flower*", "flower.gif", "flower"),
   array("*inlove*", "inlove.gif", "in love"),
   array("*kiss*", "kiss.gif", "kiss"),
   array("*pissed*", "pissed.gif", "pissed"),
   array("*pray*", "pray.gif", "pray"),
   array("*saycheese*", "saycheese.gif", "say cheese!"),
   array("*secret*", "secret.gif", "secret"),
   array("*sarcasm*", "sarcasm.gif", "sarcasm"),
   array("*stress*", "stress.gif", "stress"),
   array("*tup*", "tup.gif", "thumbs up"),
   array("*tdown*", "tdown.gif", "thumbs down"),
   array("*argue*", "argue.gif", "argue"),
   array("*blushing*", "blushing.gif", "blushing"),
   array("*bugs*", "bugs.gif", "bugs"),
   array("*finger*", "finger.gif", "middle finger"),
   array("*helpless*", "helpless.gif", "helpless"),
   array("*hilarious*", "hilarious.gif", "hilarious"),
   array("*hmm*", "hmm.gif", "hmm!"),
   array("*lol*", "lol.gif", "lol"),
   array("*music*", "music.gif", "music"),
   array("*neutral*", "neutral.gif", "neutral"),
   array("*realsad*", "realsad.gif", "real sad"),
   array("*shop*", "shop.gif", "shop"),
   array("*tongue*", "tongue.gif", "tongue"),
   array("*wait*", "wait.gif", "wait"),
   array("*yummy*", "yummy.gif", "yummy"),
   array("*zipit*", "zipit.gif", "zip it!")
  );
  for($i = 0; $i < count($smileys); $i ++) {
   $result = dbquery("INSERT INTO ".$db_prefix."smileys (smiley_code, smiley_image, smiley_text)
     VALUES ('".$smileys[$i][0]."', '".$smileys[$i][1]."', '".$smileys[$i][2]."')"
   );
  }
  if ($i > 0) { echo "$i smileys were added to the database<br>"; }
  $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title,
   admin_link, admin_page) VALUES ('SM', 'smileys.gif', 'Smileys', 'smileys.php', 3)"
  );
  $result = dbquery("SELECT user_id, user_name, user_rights FROM ".$db_prefix."users WHERE user_level = '103'");
  while($data = dbarray($result)) {
   $rights_array = explode(".", $data['user_rights'].".SM");
   sort($rights_array);
   $rights = implode(".", $rights_array);
   $result2 = dbquery("UPDATE ".$db_prefix."users SET user_rights='$rights' WHERE user_id = '".$data['user_id']."'");
   if ($result2) { echo "<font color='red'><b>".$data['user_name']."</b></font> has been given access rights to the smiley admin<br>"; }
  }
}
?>

http://rafik.eu Wyślij Prywatną Wiadomość
#106216 18.01.2010 08:45:00 - RE: Zarządzanie emot -ami
Avatar Użytkownika
Ostrzeżeń: 0
Postów: 1463
Post napisano: 18.01.2010 08:45:00
Ano nie ma.

Rafik doślij.
http:// Wyślij Prywatną Wiadomość
#106217 18.01.2010 08:46:17 - RE: Zarządzanie emot -ami
Avatar Użytkownika
Ostrzeżeń: 0
Postów: 1598
Post napisano: 18.01.2010 08:46:17
Muszę napisać go bo uleciał gdzieś:]
http://rafik.eu Wyślij Prywatną Wiadomość
#106218 18.01.2010 09:09:02 - RE: Zarządzanie emot -ami
Avatar Użytkownika
Ostrzeżeń: 0
Postów: 81
Post napisano: 18.01.2010 09:09:02
ok ja czekam ;p i zrobiłbyś jak to po kolei zainstalować bo mi się co chwile coś wali xD
Wyślij Prywatną Wiadomość
1 2 3 »


Szybka Odpowiedź


Musisz się zalogować by móc zamieszczać posty w tym temacie.