sürümü: 0.2.1
yazarı: 3Di
sitesi: http://gold.io3di.com/
indirilme linki: http://gold.io3di.com/viewtopic.php?f=8&t=100
permissions_pastebin.php
- Kod: Tümünü seç
// Adding new category
$lang['permission_cat']['pastebin'] = 'Pastebin';
// Adding new permission set
//$lang['permission_type']['pastebin_'] = 'Pastebin Permissions';
// Adding the permissions
$lang = array_merge($lang, array(
// User perms
'acl_u_pastebin_view' => array('lang' => 'Can view snippets', 'cat' => 'pastebin'),
'acl_u_pastebin_post' => array('lang' => 'Can post snippets', 'cat' => 'pastebin'),
'acl_u_pastebin_post_novc' => array('lang' => 'Can post snippets without visual confirmation', 'cat' => 'pastebin'),
// Moderator perms
'acl_m_pastebin_edit' => array('lang' => 'Can edit snippets', 'cat' => 'pastebin'),
'acl_m_pastebin_delete' => array('lang' => 'Can delete snippets', 'cat' => 'pastebin'),
));
pastebin.php
- Kod: Tümünü seç
$lang = array_merge($lang, array(
'COPY_PASTE' => 'Copy-paste',
'COPY_PASTE_EXPLAIN' => 'Copying code directly through the browser usually breaks the tabbing, so here you can copy the code to paste into your file-editor.',
'DELETE_SNIPPET' => 'Delete snippet',
'DELETE_SNIPPET_CONFIRM' => 'Please confirm that you want to delete the snippet with the title “%s”, this action cannot be undone.',
'DELETE_SNIPPET_EXPLAIN' => 'This will remove the snippet from the database, this action can not be undone.',
'DOWNLOAD_SNIPPET' => 'Download this snippet as a file',
'ERR_NO_BODY' => 'You did not specify a snippet body or upload a valid file.',
'ERR_NO_TITLE' => 'You did not specify a title for your snippet',
'ERR_NO_DESC' => 'You did not specify a description for your snippet',
'HIGHLIGHT_LANG' => 'Highlighting language',
'LATEST_SNIPPETS' => 'Latest snippets',
'MODERATE_SNIPPET' => 'Moderate snippet',
'MODERATE_SNIPPET_EXPLAIN' => 'Here you can moderate the current snippet.',
'NO_VALID_SNIPPET' => 'You didn’t specify a valid snippet to view.',
'NO_SNIPPETS' => 'There are currently no snippets in the pastebin.',
'PASTEBIN' => 'Pastebin',
'PASTEBIN_AUTH_NO_VIEW' => 'You have no permission to view this page.',
'PASTEBIN_AUTH_NO_POST' => 'You have no permission to submit snippets to the pastebin.',
'PASTEBIN_CONFIRM' => 'Confirm',
'PASTEBIN_CONFIRM_EXPLAIN' => 'To prevent automated advertisement emails, the board administration requires you to enter a confirmation code. The code is displayed in the image you should see below.',
'PASTEBIN_DISALLOWED_EXTENSION' => 'The extension %s is not allowed',
'PASTEBIN_EMPTY_FILEUPLOAD' => 'The uploaded file is empty',
'PASTEBIN_EXPLAIN' => 'The pastebin is a database of snippets. Snippets are actually small bits of code, in this case they can also be whole files though. For it’s highlighting, this pastebin uses <a href="http://qbnz.com/highlighter/">Geshi</a>.',
'PASTEBIN_HELLO' => 'Just got sent here?',
'PASTEBIN_HELLO_EXPLAIN' => 'If you just got sent here, please paste the requested file or code into the textarea below, and give the url to the person who sent you here.',
'PASTEBIN_INSTALLED' => 'The pastebin has been installed successfully.',
'PASTEBIN_INVALID_FILENAME' => '%s is an invalid filename',
'PASTEBIN_NOT_UPLOADED' => 'File could not be uploaded.',
'PASTEBIN_NO_AUTH' => 'Information',
'PASTEBIN_NO_AUTH_EXPLAIN' => 'You are not authorised to submit new snippets.',
'PASTEBIN_PARTIAL_UPLOAD' => 'The uploaded file was only partially uploaded',
'PASTEBIN_PHP_SIZE_NA' => 'The uploaded file´s filesize is too large.<br />Could not determine the maximum size defined by PHP in php.ini.',
'PASTEBIN_PHP_SIZE_OVERRUN' => 'The uploaded file´s filesize is too large, the maximum upload size is %d MB.<br />Please note this is set in php.ini and cannot be overridden.',
'PASTEBIN_POST' => 'Submit new snippet',
'PASTEBIN_POST_EXPLAIN' => 'Please fill the snippet title and either the snippet body or select a file for upload.',
'PASTEBIN_TOO_MANY' => 'You have exceeded the maximum number of pastebin confirmation attempts for this session. Please try again later.',
'PASTEBIN_UPDATED' => 'The pastebin has been updated to the latest version successfully.',
'PASTEBIN_UPLOAD' => 'Upload snippet',
'PASTEBIN_UPLOAD_EXPLAIN' => 'If you specify a file to be uploaded, it will be used instead of the text in the snippet body above.',
'PASTEBIN_VIEW' => 'View snippet - %s',
'PASTEBIN_WRONG_FILESIZE' => 'The file is too big, maximum allowed size is %1d %2s',
'RETURN_PASTEBIN' => '%sReturn to the main pastebin page%s',
'RETURN_SNIPPET' => '%sReturn to the snippet%s',
'SHORT_PRUNABLE' => 'Prunable',
'SNIPPET_DESC' => 'Snippet description',
'SNIPPET_HILIT' => 'view highlighted snippet',
'SNIPPET_HIGHLIGHT' => 'Snippet highlight',
'SNIPPET_MODERATED' => 'The snippet has been moderated successfully',
'SNIPPET_TEXT' => 'Snippet body',
'SNIPPET_TITLE' => 'Snippet title',
'SNIPPET_PLAIN' => 'view plain snippet',
'SNIPPET_PRUNABLE' => 'Snippet prunable',
'SNIPPET_PRUNABLE_EXPLAIN' => 'If this option is disabled, the snippet will not be included in the monthly prunes.',
'SNIPPET_SUBMITTED' => 'Your snippet has been submitted successfully.',
));
// these are used by geshi
$lang['PASTEBIN_LANGUAGES'] = array(
'actionscript' => 'ActionScript',
'ada' => 'Ada',
'apache' => 'Apache',
'applescript' => 'AppleScript',
'asm' => 'x86 Assembler',
'asp' => 'ASP',
'autoit' => 'AutoIt',
'bash' => 'Bash',
'blitzbasic' => 'BlitzBasic',
'bnf' => 'BNF',
'c' => 'C',
'c_mac' => 'C (Mac)',
'caddcl' => 'CAD DCL',
'cadlisp' => 'CAD Lisp',
'cfdg' => 'CFDG',
'cfm' => 'ColdFusion',
'cpp-qt' => 'C++ (QT)',
'cpp' => 'C++',
'csharp' => 'C#',
'css-gen.cfg' => 'C#',
'css' => 'CSS',
'c_mac' => 'C (Mac)',
'd' => 'D',
'delphi' => 'Delphi',
'diff' => 'Diff',
'div' => 'DIV',
'dos' => 'DOS',
'eiffel' => 'Eiffel',
'fortran' => 'Fortran',
'freebasic' => 'FreeBasic',
'gml' => 'GML',
'groovy' => 'Groovy',
'html4strict' => 'HTML',
'idl' => 'Uno Idl',
'ini' => 'INI',
'inno' => 'Inno',
'io' => 'Io',
'java' => 'Java',
'java5' => 'Java(TM) 2 Platform Standard Edition 5.0',
'javascript' => 'Javascript',
'latex' => 'LaTeX',
'lisp' => 'Lisp',
'lua' => 'Lua',
'matlab' => 'Matlab M',
'mirc' => 'mIRC Scripting',
'mpasm' => 'Microchip Assembler',
'mysql' => 'MySQL',
'nsis' => 'NSIS',
'objc' => 'Objective C',
'ocaml-brief' => 'OCaml',
'ocaml' => 'OCaml',
'oobas' => 'OpenOffice.org Basic',
'oracle8' => 'Oracle 8 SQL',
'pascal' => 'Pascal',
'perl' => 'Perl',
'php-brief' => 'PHP (brief)',
'php' => 'PHP',
'plsql' => 'PL/SQL',
'python' => 'Python',
'qbasic' => 'QBasic/QuickBASIC',
'rails' => 'Rails',
'reg' => 'Microsoft Registry',
'robots' => 'robots.txt',
'ruby' => 'Ruby',
'sas' => 'SAS',
'scheme' => 'Scheme',
'sdlbasic' => 'sdlBasic',
'smalltalk' => 'Smalltalk',
'smarty' => 'Smarty',
'sql' => 'SQL',
'tcl' => 'TCL',
'text' => 'Text',
'thinbasic' => 'thinBasic',
'tsql' => 'T-SQL',
'vb' => 'Visual Basic',
'vbnet' => 'vb.net',
'vhdl' => 'VHDL',
'visualfoxpro' => 'Visual Fox Pro',
'winbatch' => 'Winbatch',
'xml' => 'XML',
'xpp' => 'X++',
'z80' => 'ZiLOG Z80 Assembler',
);