Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37790472
en ru br
ALT Linux repositórios
4.0: 4.2-alt4.svn.1162
3.0: 4.2-alt1

Group :: Rede/Outros
RPM: WackoWiki

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: wacko-r4.2-alt-initial-insert.patch
Download


--- wacko/setup/inserts.php.orig	2006-08-30 18:31:09 +0600
+++ wacko/setup/inserts.php	2006-08-30 18:31:43 +0600
@@ -6,6 +6,9 @@
 
   if (0==mysql_num_rows(mysql_query("SELECT * FROM ".$config["table_prefix"]."pages where tag='".$tag."'", $dblink)))
   {
+	  if ($lng=="ru"){
+		  mysql_query ("SET NAMES 'cp1251'", $dblink);
+	  }
    mysql_query("insert into ".$config["table_prefix"]."pages set tag = '".$tag."', ".
                "supertag='".NpjTranslit($tag, $lng)."', body = '".$body."', ".
                "user = 'WackoInstaller', owner = '".$config["admin_name"]."', ".
@@ -67,4 +70,4 @@
  else
   require("setup/lang/inserts.".$config["language"].".php");
 
-?>
\ ÷ ËÏÎÃÅ ÆÁÊÌÁ ÎÅÔ ÎÏ×ÏÊ ÓÔÒÏËÉ
+?>
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009