Fossil

Check-in [f0a9e3b523]
Login

Check-in [f0a9e3b523]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Try again to get the Login/Logout menu name correct.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f0a9e3b52382724e657157ae7e76d93c53ea7582
User & Date: drh 2007-11-21 03:19:21.000
Context
2007-11-21
12:21
Attach login cookies to the root path of the server, so that multiple servers can coexist on the same site. ... (check-in: 68a202e101 user: drh tags: trunk)
03:19
Try again to get the Login/Logout menu name correct. ... (check-in: f0a9e3b523 user: drh tags: trunk)
03:17
Get the name of the Login/Logout menu option right. ... (check-in: bd667b1940 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/style.c.
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
  return strcmp(A->zLabel, B->zLabel);
}

/*
** Draw the header.
*/
void style_header(const char *zTitle){
  const char *zLogInOut = "Logout";
  const char *zHeader = db_get("header", zDefaultHeader);  
  struct Subscript *p;
  login_check_credentials();

  /* Generate the header up through the main menu */
  p = SbS_Create();
  SbS_Store(p, "title", zTitle, 0);
  SbS_Store(p, "baseurl", g.zBaseURL, 0);
  if( g.zLogin ){
    SbS_Store(p, "login", g.zLogin, 0);
    zLogInOut = "Login";
  }
  SbS_Render(p, zHeader);
  SbS_Destroy(p);

  /* Generate the main menu and the submenu (if any) */
  @ <div id="main-menu">
  @ <a href="%s(g.zBaseURL)/home">Home</a>







|










|







66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
  return strcmp(A->zLabel, B->zLabel);
}

/*
** Draw the header.
*/
void style_header(const char *zTitle){
  const char *zLogInOut = "Login";
  const char *zHeader = db_get("header", zDefaultHeader);  
  struct Subscript *p;
  login_check_credentials();

  /* Generate the header up through the main menu */
  p = SbS_Create();
  SbS_Store(p, "title", zTitle, 0);
  SbS_Store(p, "baseurl", g.zBaseURL, 0);
  if( g.zLogin ){
    SbS_Store(p, "login", g.zLogin, 0);
    zLogInOut = "Logout";
  }
  SbS_Render(p, zHeader);
  SbS_Destroy(p);

  /* Generate the main menu and the submenu (if any) */
  @ <div id="main-menu">
  @ <a href="%s(g.zBaseURL)/home">Home</a>