includes/pageprocess.php
changeset 1252 e34c23a35dc9
parent 1227 bdac73ed481e
child 1332 12286b3ee214
equal deleted inserted replaced
1251:d543689ed2eb 1252:e34c23a35dc9
   951 			case PROTECT_NONE: $action = 'unprot'; break;
   951 			case PROTECT_NONE: $action = 'unprot'; break;
   952 			case PROTECT_SEMI: $action = 'semiprot'; break;
   952 			case PROTECT_SEMI: $action = 'semiprot'; break;
   953 		}
   953 		}
   954 		
   954 		
   955 		$sql = 'INSERT INTO ' . table_prefix . "logs ( log_type, action, page_id, namespace, author, author_uid, edit_summary, time_id, page_text, date_string ) VALUES\n"
   955 		$sql = 'INSERT INTO ' . table_prefix . "logs ( log_type, action, page_id, namespace, author, author_uid, edit_summary, time_id, page_text, date_string ) VALUES\n"
   956  				. "  ( 'page', '$action', '{$this->page_id}', '{$this->namespace}', '$username', $author_uid, '$reason', '$time', '$existing_protection', 'DATE_STRING COLUMN OBSOLETE, USE time_id' );";
   956 				. "  ( 'page', '$action', '{$this->page_id}', '{$this->namespace}', '$username', {$session->user_id}, '$reason', '$time', '$existing_protection', 'DATE_STRING COLUMN OBSOLETE, USE time_id' );";
   957 		if ( !$db->sql_query($sql) )
   957 		if ( !$db->sql_query($sql) )
   958 		{
   958 		{
   959 			$db->die_json();
   959 			$db->die_json();
   960 		}
   960 		}
   961 		
   961