1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
|
*/
void msgadmin_page(void){
const char *zAdminEmail = db_get("email-admin",0);
unsigned int uSeed;
const char *zDecoded;
char *zCaptcha = 0;
if( zAdminEmail==0 || zAdminEmail[0]==0 ){
style_header("Admin Messaging Disabled");
@ <p>Messages to the administrator are disabled on this repository
style_footer();
return;
}
if( P("submit")!=0
|
>
|
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
|
*/
void msgadmin_page(void){
const char *zAdminEmail = db_get("email-admin",0);
unsigned int uSeed;
const char *zDecoded;
char *zCaptcha = 0;
login_check_credentials();
if( zAdminEmail==0 || zAdminEmail[0]==0 ){
style_header("Admin Messaging Disabled");
@ <p>Messages to the administrator are disabled on this repository
style_footer();
return;
}
if( P("submit")!=0
|
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
|
if( captcha_needed() ){
uSeed = captcha_seed();
zDecoded = captcha_decode(uSeed);
zCaptcha = captcha_render(zDecoded);
}
style_header("Message To Administrator");
form_begin(0, "%R/msgadmin");
@ <p>Enter a message for the repository administrator below:</p>
@ <table class="subscribe">
if( zCaptcha ){
@ <tr>
@ <td class="form_label">Security Code:</td>
@ <td><input type="text" name="captcha" value="" size="10">
@ <input type="hidden" name="captchaseed" value="%u(uSeed)"></td>
@ </tr>
|
|
|
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
|
if( captcha_needed() ){
uSeed = captcha_seed();
zDecoded = captcha_decode(uSeed);
zCaptcha = captcha_render(zDecoded);
}
style_header("Message To Administrator");
form_begin(0, "%R/msgadmin");
@ <p>Enter a message to the repository administrator below:</p>
@ <table class="subscribe">
if( zCaptcha ){
@ <tr>
@ <td class="form_label">Security Code:</td>
@ <td><input type="text" name="captcha" value="" size="10">
@ <input type="hidden" name="captchaseed" value="%u(uSeed)"></td>
@ </tr>
|