Fossil

Diff
Login

Differences From Artifact [2bbf87b741]:

To Artifact [7d807cdc08]:


17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
17
18
19
20
21
22
23






24
25
26
27
28
29
30







-
-
-
-
-
-







**
** This file contains code to implement the basic web page look and feel.
**
*/
#include "VERSION.h"
#include "config.h"
#include "style.h"
#ifndef _WIN32
# include <sys/types.h>
# include <sys/stat.h>
# include <fcntl.h># 
#endif


/*
** Elements of the submenu are collected into the following
** structure and displayed below the main menu.
**
** Populate these structure with calls to
**
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
435
436
437
438
439
440
441







442
443
444
445
446
447
448







-
-
-
-
-
-
-







  headerHasBeenGenerated = 1;
  sideboxUsed = 0;
  if( g.perm.Debug && P("showqp") ){
    @ <div class="debug">
    cgi_print_all(0, 0);
    @ </div>
  }
#ifndef _WIN32
  g.fdDevNull = open("/dev/null", O_RDWR);
  if( g.fdDevNull<0 ){
    fossil_warning("cannot open /dev/null");
    webpage_error("Cannot open /dev/null");
  }
#endif
}

#if INTERFACE
/* Allowed parameters for style_adunit() */
#define ADUNIT_OFF        0x0001       /* Do not allow ads on this page */
#define ADUNIT_RIGHT_OK   0x0002       /* Right-side vertical ads ok here */
#endif