Issue 0000639: Force selected page on index.php

Continue the Radu idea, restrict more use of random list

Issue 0000598: NBM: Add new informations
Add css on mail
Use user template for mail (on next commit, best control)

Comment mass_inserts because don't with MySQL 4.1.9


git-svn-id: http://piwigo.org/svn/trunk@1792 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub
2007-02-08 22:04:36 +00:00
parent 1f53608976
commit 5b038de717
8 changed files with 84 additions and 39 deletions
+6 -3
View File
@@ -525,10 +525,13 @@ function mass_inserts($table_name, $dbfields, $datas)
{
$first = true;
$query = 'SHOW VARIABLES where variable_name = \'max_allowed_packet\';';
/*$query = 'SHOW VARIABLES where variable_name = \'max_allowed_packet\';';
list(, $packet_size) = mysql_fetch_row(pwg_query($query));
$packet_size = $packet_size - 2000; // The last list of values MUST not exceed 2000 character
$packet_size = $packet_size - 2000; // The last list of values MUST not exceed 2000 character*/
/* DON T WORK WITH MySQL 4.1.9 */
$packet_size = 1000000;
$query = '';
foreach ($datas as $insert)
{
if (strlen($query) >= $packet_size)