############################################################################### # AdminEdit.pl # ############################################################################### # YaBB: Yet another Bulletin Board # # Open-Source Community Software for Webmasters # # Version: YaBB 1 Gold - SP 1.3.1 # # Released: December 2001; Updated April 18, 2003 # # Distributed by: http://www.yabbforum.com # # =========================================================================== # # Copyright (c) 2000-2003 YaBB (www.yabbforum.com) - All Rights Reserved. # # Software by: The YaBB Development Team # # with assistance from the YaBB community. # # Sponsored by: Xnull Internet Media, Inc. - http://www.ximinc.com # ############################################################################### $admineditplver = "1 Gold - SP 1.3.1"; sub EditNews { &is_admin_or_gmod; if ($settings[7] eq 'Global Moderator' && $allowgmod_news != 1 ) { &fatal_error("$txt{'1'}"); } my($line); $yymain .= qq~
~; $yytitle = "$txt{'7'}"; &template; exit; } sub EditNews2 { &is_admin_or_gmod; if ($settings[7] eq 'Global Moderator' && $allowgmod_news != 1 ) { &fatal_error("$txt{'1'}"); } fopen(FILE, ">$vardir/news.txt", 1); chomp $FORM{'news'}; print FILE "$FORM{'news'}"; fclose(FILE); if ($settings[7] eq 'Global Moderator') { $yySetLocation = qq~$cgi\;action=moderate~; } else { $yySetLocation = qq~$cgi\;action=admin~; } &redirectexit; } sub EditMemberGroups { &is_admin; my(@lines, $mgroups, $i); fopen(FILE, "$vardir/membergroups.txt"); @lines =
![]() |
![]() |
|
![]() |
![]() |
$txt{'699'} |
![]() |
$txt{'682'} |
![]() |
$txt{'765'} |