Changeset 415 for trunk/src/sh_html.c


Ignore:
Timestamp:
Nov 1, 2012, 7:45:54 AM (12 years ago)
Author:
katerina
Message:

Fixes for tickets #314, #315, #316, #317, #318, #319, #320, and #321.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_html.c

    r383 r415  
    503503}
    504504
     505int sh_html_zero()
     506{
     507  long fd;
     508
     509  SL_ENTER(_("sh_html_zero"));
     510
     511  if (0 != (fd = tf_trust_check (DEFAULT_HTML_FILE, SL_YESPRIV)))
     512    {
     513      SL_RETURN((-1), _("sh_html_zero"));
     514    }
     515
     516  fd = sl_open_write_trunc (FIL__, __LINE__, DEFAULT_HTML_FILE, SL_YESPRIV);
     517
     518  if (SL_ISERROR(fd))
     519    {
     520     SL_RETURN((-1), _("sh_html_zero"));
     521    }
     522
     523  sh_html_head(fd);
     524  sh_html_foot(fd);
     525
     526  sl_close(fd);
     527
     528  SL_RETURN((0), _("sh_html_zero"));
     529}
     530
    505531/* SH_WITH_SERVER */
    506532#endif
Note: See TracChangeset for help on using the changeset viewer.