includes/render.php
changeset 345 4ccdfeee9a11
parent 335 67bd3121a12e
child 371 dc6026376919
equal deleted inserted replaced
344:be6c5fdd9203 345:4ccdfeee9a11
   642     for($i=0;$i<sizeof($nowiki[1]);$i++)
   642     for($i=0;$i<sizeof($nowiki[1]);$i++)
   643     {
   643     {
   644       $text = str_replace('<nowiki>'.$nowiki[1][$i].'</nowiki>', '{NOWIKI:'.$random_id.':'.$i.'}', $text);
   644       $text = str_replace('<nowiki>'.$nowiki[1][$i].'</nowiki>', '{NOWIKI:'.$random_id.':'.$i.'}', $text);
   645     }
   645     }
   646     
   646     
   647     $text = str_replace('~~~~~', date('G:i, j F Y (T)'), $text);
   647     $text = str_replace('~~~~~', enano_date('G:i, j F Y (T)'), $text);
   648     $text = str_replace('~~~~', "[[User:$session->username|$session->username]] ".date('G:i, j F Y (T)'), $text);
   648     $text = str_replace('~~~~', "[[User:$session->username|$session->username]] ".enano_date('G:i, j F Y (T)'), $text);
   649     $text = str_replace('~~~', "[[User:$session->username|$session->username]] ", $text);
   649     $text = str_replace('~~~', "[[User:$session->username|$session->username]] ", $text);
   650     
   650     
   651     // Reinsert <nowiki> sections
   651     // Reinsert <nowiki> sections
   652     for($i=0;$i<$nw;$i++)
   652     for($i=0;$i<$nw;$i++)
   653     {
   653     {