257
258
259
260
261
262
263
264
265
266
267
268
269
270
|
if( g.perm.Hyperlink ){
@ <form method="POST" action="%z(zLink)" %s(zOtherArgs)>
}else{
needHrefJs = 1;
@ <form method="POST" data-action='%s(zLink)' action='%R/login' \
@ %s(zOtherArgs)>
}
}
/*
** Add a new element to the submenu
*/
void style_submenu_element(
const char *zLabel,
|
>
|
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
|
if( g.perm.Hyperlink ){
@ <form method="POST" action="%z(zLink)" %s(zOtherArgs)>
}else{
needHrefJs = 1;
@ <form method="POST" data-action='%s(zLink)' action='%R/login' \
@ %s(zOtherArgs)>
}
login_insert_csrf_secret();
}
/*
** Add a new element to the submenu
*/
void style_submenu_element(
const char *zLabel,
|