Defnyddiwr:Llwy-ar-lawr

Oddi ar Celwyddoniadur
Neidio i: llywio, chwilio

Symud i weinydd arall - uncyclopedia neu godaddy. (angen penderfynu) Diweddaru i mediawici 1.22.4 dwi'n credu os yn bosibl. Ar hyn o bryd 1.20alpha, gweler arbennig:version - wedi dyddio + rhy araf (achos cloudflare neu rywbeth tebyg).

Cynnwys

[golygu] Pethau i'w gwneud

  • Defnyddio http://download.uncyc.org/cy-wiki.zip i fewnforio'r wici ond dyw'r ffeil ddim yn cynnwys y logiau, angen eu mewnforio rhywsut arall - bosib mewnforio a llaw ond mae hwnna'n eitha caled. Fallai gofyn i carlb neu Lyrithya am sut i fewnforio'r logiau'n haws. Defnyddio y pethau ma. Ddim yn ddealladwy iawn...gofyn i Lyrithya neu legoktm efallai, os bydd amser ganddyn nhw ganddo fe. (Nid Lyrithya achos nad ei bod byth yn esbonio dim byd yn arbennig i fi)
    • Angen mewnforio'r tabl defnyddwyr hefyd, efo MediaWikiAuth. Bydd wici carlb yn cael ei gau ond angen ar y wici ryn ni'n tunny'r tabl ohono'n aros yn fyw er mwyn i'r estyniad weithio'n iawn - Illogicopedia carlb wedi mynd lawr ac wedyn doedd hi ddim yn bosibl mewnforio cyfrifon; roedd rhaid i Lyrithya analluogi'r mewnforio. Ofn arna i bydd hyn yn digwydd i ni hefyd.
  • Rhoi gwybod i'r defnyddwyr sy ma, yn arbennig Sion Blewyn Coch, hefyd Caradog, eraill dwi'm yn cofio
  • Gwneud yn bosibl i ddefnyddwyr a rwystrwyd golygu eu tudalennau sgwrs - dim yn bosib ar hyn o bryd, byddai'n neis - defnyddio $wgBlockAllowsUTEdit = true;
  • estyniadau - css, interwiki (gwneud yn bosibl i olygu'r tabl), checkuser, abusefilter, editcount, titleblacklist, user merge+delete, dynamicpagelist, ayb (gweler arbennig:version)
  • revisiondelete a grwpiau, rollback ac autopatrolled - rhoi stwff yn LocalSettings.php
  • Dileu'r diffs yn y common.css unwaith wedi symud, fyddan nhw ddim yn angenrheidiol
  • Gwirio os mae'n bosibl rhwystro'ch cyfrif eich hun, dydy hwn ddim yn bosibl ar y wici ma (yr unig wici dwi'n gyfarwydd a fe lle mae hwn yn digwydd)

[golygu] Testun o LocalSettings.php

<?php
$wgReadOnly = false;
$wgRCMaxAge = 30 * 24 * 3600;
 
/* extensions */
if( !$wgCommandLineMode ) 
{
#       require_once('/home/sophia/domains/extensions/APC/ViewAPC.php');
        require_once('/home/sophia/domains/extensions/DismissableSiteNotice/DismissableSiteNotice.php');
#       require_once('/home/sophia/domains/extensions/UsernameBlacklist/UsernameBlacklist.php');
        require_once('/home/sophia/domains/extensions/TitleBlacklist/TitleBlacklist.php');
        require_once('/home/sophia/domains/extensions/RefreshSpecial/RefreshSpecial.php');
 	require_once('/home/sophia/domains/extensions/Nuke/Nuke.php');
#	require_once('/home/sophia/domains/extensions/Gadgets/Gadgets.php');
	require_once('/home/sophia/domains/extensions/Poll.php');
	require_once('/home/sophia/domains/extensions/CheckSpambots/CheckSpambots.php');
}
 
require_once('/home/sophia/domains/extensions/DynamicPageList/DynamicPageList.php');
require_once('/home/sophia/domains/extensions/DynamicFunctions.php');
require_once('/home/sophia/domains/extensions/InputBox/InputBox.php');
require_once('/home/sophia/domains/extensions/CreateBox/CreateBox.php');
require_once('/home/sophia/domains/extensions/youtube_extension.php');
require_once('/home/sophia/domains/extensions/RandomSelection.php');
$wgMiserMode = true;
 
require_once('/home/sophia/domains/extensions/LogCount.php');
require_once('/home/sophia/domains/extensions/AlexaRank.php');
require_once('/home/sophia/domains/extensions/Cite/Cite.php');
require_once('/home/sophia/domains/extensions/Contributors/Contributors.php');
require_once('/home/sophia/domains/extensions/DPLforum/DPLforum.php');
require_once('/home/sophia/domains/extensions/EditCount.php');
require_once('/home/sophia/domains/extensions/Icon/Icon.php');
require_once('/home/sophia/domains/extensions/Interwiki/Interwiki.php');
require_once('/home/sophia/domains/extensions/Namespaces/SpecialNamespaces.php');
require_once('/home/sophia/domains/extensions/MetaKeywordsTag.php');
require_once('/home/sophia/domains/extensions/PageCSS/PageCSS.php');
$wgUseAjax = true;
$wgAjaxWatch=false;
$wgPFEnableStringFunctions = true;
#require_once('/home/sophia/domains/extensions/Oversight/HideRevision.php');
#require_once('/home/sophia/domains/extensions/Resign/SpecialResign.php' );
require_once('/home/sophia/domains/extensions/rss/rss.php');
require_once('/home/sophia/domains/extensions/CategoryTree/CategoryTree.php' );
require_once('/home/sophia/domains/extensions/DeletedContributions.php');
require_once('/home/sophia/domains/extensions/SubmitInToolbar/SubmitInToolbar.php');
$wgHooks['EditPageBeforeEditToolbar'][] = 'fnMyTools';
function fnMyTools ( &$toolbar ) 
{ 
	$toolbar .= "\n<script>\n";
        wfRunHooks('EditToolBar', array(&$toolbar));
	$toolbar .= "\n</script>\n";
	return true;
}
 
require_once('/home/sophia/domains/extensions/CharInsert/CharInsert.php');
require_once('/home/sophia/domains/extensions/RandomImage/RandomImage.php');
require_once('/home/sophia/domains/extensions/Poem/Poem.php');
require_once('/home/sophia/domains/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php');
require_once('/home/sophia/domains/extensions/SimpleCalendar.php');
require_once('/home/sophia/domains/extensions/Renameuser/SpecialRenameuser.php');
require_once('/home/sophia/domains/extensions/timeline/Timeline.php');
require_once('/home/sophia/domains/extensions/ParserFunctions/ParserFunctions.php');
require_once('/home/sophia/domains/extensions/notitle.php');
require_once('/home/sophia/domains/extensions/logotipo.php');
require_once('/home/sophia/domains/extensions/RawMsg.php');
require_once('/home/sophia/domains/extensions/Variables.php');
#require_once('/home/sophia/domains/extensions/akismet/AkismetKlik.php');
require_once('/home/sophia/domains/extensions/Gnuplot/GnuplotBasic.php');
require_once('/home/sophia/domains/extensions/googleAnalytics/googleAnalytics.php');
#       if ($wgLanguageCode != 'pt')
#          require_once('/home/sophia/domains/extensions/intersection/DynamicPageList.php');
require_once('/home/sophia/domains/extensions/Flash.php');
require_once('/home/sophia/domains/extensions/UserMerge/UserMerge.php');
$wgGroupPermissions['bureaucrat']['usermerge'] = true;
$wgGnuplotCommand = '/usr/bin/gnuplot';
 
$wgGroupPermissions['sysop']['spamregex'] = true;
$wgGroupPermissions['sysop']['nuke'] = true;
$wgGroupPermissions['sysop']['interwiki'] = true;
$wgGroupPermissions['sysop']['namespaces'] = true;
$wgGroupPermissions['bureaucrat']['apc'] = true;
$wgGroupPermissions['bureaucrat']['spamregex'] = true;
#$wgGroupPermissions['oversight']['hiderevision'] = true;
#$wgGroupPermissions['oversight']['oversight'] = true;
$wgGroupPermissions['sysop']['suppressredirect'] = true;
$wgGroupPermissions['sysop']['mergehistory'] = true;
$wgGroupPermissions['sysop']['deleterevision'] = true;
$wgGroupsRemoveFromSelf['sysop'] = true;
$wgGroupPermissions['rollback']['rollback'] = true;
$wgGroupPermissions['user']['refreshspecial'] = true;
$wgGroupPermissions['user']['move']             = false;
$wgGroupPermissions['user']['move-subpages']    = false;
$wgGroupPermissions['user']['move-rootuserpages'] = false;
$wgGroupPermissions['user']['movefile']         = false;
$wgGroupPermissions['autoconfirmed']['move']             = true;
$wgGroupPermissions['autoconfirmed']['move-subpages']    = true;
$wgGroupPermissions['autoconfirmed']['move-rootuserpages'] = true; // can move root userpages
//$wgGroupPermissions['autoconfirmed']['movefile']         = true;       // Disabled for now due to possible bugs and security concerns
$wgGroupPermissions['*']['viewsystemstats'] = true;
$wgExpensiveParserFunctionLimit = 9999;
 
/**
 * True to turn on parser function and false to not
 */
$egECParserFunction = true;
$wgNamespacesWithSubpages[NS_SPECIAL] = true;
 
/**
 * An array of the names of the parser functions
 * 
 * This array of parser function names must be single words (can have - and _).
   They are not case sensitive.
   These will have "#" appended to the front of them in wikimarkup.
 * @var array
 */
$egECParserFunctionNames = array("editcount", "ec");
 
/**
 * True to enable the Special:EditCount page
 */
$egECEnableSpecialPage = true;
 
 
/* site-specific settings */
# Number of days, edits before new user is autoconfirmed
$wgAutoConfirmAge = 3600*168; // one week
$wgAutoConfirmCount = 0;
 
$wgAllowDisplayTitle = true;
$wgRestrictDisplayTitle = false;
$wgAllowSlowParserFunctions = true;
$wgAntiLockFlags = ALF_NO_LINK_LOCK | ALF_NO_BLOCK_LOCK |ALF_PRELOAD_LINKS | ALF_PRELOAD_EXISTENCE; 
$wgArticlePath = "/wiki/$1";
$wgCacheSharedUploads = true;
$wgCheckFileExtensions = true;
$wgCheckDBSchema=false;
$wgDBadminpassword = $wgDBpassword;
$wgDBadminuser = $wgDBuser;
$wgEnableUploads = true;
$wgFetchCommonsDescriptions = true;
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'svg', 'ico', 'ogg', 'mp3', 'dat', 'swf' );
$wgGroupPermissions['*']['interwiki'] = false;
$wgGroupPermissions['sysop']['interwiki'] = true;
$wgHitcounterUpdateFreq = 25000;
$wgImageMapAllowExternalLinks = true;
$wgIgnoreImageErrors = true;
$wgJobRunRate = 0;
#$wgLogo = "http://images.uncyc.org/" . $wgLanguageCode . "/b/bc/Wiki.png";

if ($wgDBserver != 'oscar')
{
  $wgDBservers = array(
         array(
                 'host' => "roberto",
                 'dbname' => $wgDBuser,
                 'user' => $wgDBuser,
                 'password' => $wgDBpassword,
                 'type' => "mysql",
                 'flags' => 0,
                 'load' => 0,
         ),
         array(
                 'host' => "localhost",
                 'dbname' => $wgDBuser,
                 'user' => $wgDBuser,
                 'password' => $wgDBpassword,
                 'type' => "mysql",
                 'flags' => 0,
                 'load' => 1,
         ),
   );
}
 
$wgMainCacheType = CACHE_MEMCACHED;
$wgMemCachedServers = array ( '192.168.0.2:11211' );
$wgSessionsInMemcached = true;
$wgLocalisationCacheConf = array(
       'class' => 'LocalisationCache',
       'store' => 'files',
       'storeClass' => false,
       'storeDirectory' => 'lcache',
       'manualRecache' => false,
);
 
$wgMaxShellMemory = 1024000;
$wgMetaNamespace = $wgSitename;
#$wgMimeDetectorCommand = "file -bi";

if ($wgLanguageCode != 'commons')
{
	$wgForeignFileRepos[] = array(
	    'class' => 'ForeignDBRepo',
	    'name' => 'otherwiki',
	    'url' => "http://images.uncyc.org/commons",
	    'directory' => '/var/images/commons',
	    'hashLevels' => 2, // This must be the same for the other family member
	    'dbType' => $wgDBtype,
	    'dbServer' => 'oscar',
	    'dbUser' => $wgDBuser,
	    'dbPassword' => $wgDBpassword,
	    'dbName' => 'uncyc_commons',
	    'dbFlags' => 0,
	    'tablePrefix' => '',
	    'hasSharedCache' => true,
	    'descBaseUrl' => 'http://jpe.gs/wiki/Image:',
	    'fetchDescription' => true
	);
}
 
$wgShowIPinHeader = false;
$wgStrictFileExtensions = true;
 
$wgSVGConverters = array(
        'ImageMagick' => '$path/convert -background white -geometry $width $input PNG:$output',
        'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
        'inkscape' => '/usr/bin/inkscape -z -w $width -f $input -e $output',
        'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
        'rsvg' => '$path/rsvg -w$width -h$height $input $output',
        );
$wgSVGConverter = 'inkscape';
 
#$wgTrivialMimeDetection = true;
$wgUploadSizeWarning = 150 * 1024;
$wgUseCategoryMagic = true;
$wgUseImageResize             = true;
$wgUseMemCached = true;
$wgUseSharedUploads = true;
$wgUseSquid = true;
$wgUseTeX         = true;
$wgVerifyMimeType = false;
 
require_once('/home/sophia/domains/extensions/ImageMap/ImageMap.php');
 
/* wiki-specific settings */
 
#$wgAllowExternalImagesFrom = 'http://commons.uncyclomedia.org/';

# Use OPM instead of SORBS open proxy blocker
#$wgEnableSorbs = true;
#$wgSorbsUrl = 'opm.tornevall.org.';

$wgSquidServers = array('96.45.180.90','96.45.180.92','96.45.180.93','96.45.180.94','66.235.180.196','66.36.240.92','66.36.242.84');
$wgSquidServersNoPurge = array('127.0.0.1', '192.168.0.1', '192.168.0.10', '192.168.0.11', '192.168.0.2');
 
/**
 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
 * days
 */
$wgSquidMaxage = 2678400;
 
/**
 * Default maximum age for raw CSS/JS accesses
 */
$wgForcedRawSMaxage = 2678400;
 
$wgAllowCategorizedRecentChanges = true ;
$wgAllowCopyUploads = true;
$wgAllowPageInfo = true;
$wgAllowSlowParserFunctions = true;
$wgAllowTitlesInSVG = true;
$wgAllowUserCss = true;
$wgAllowUserJs = true;
$wgExportAllowListContributors = true ;
 
$wgSMTP = array(
 'host'     => "localhost",
 'IDHost'   => "uncyclomedia.org",
 'port'     => 25,
 'auth'     => false,
 'username' => "my_user_name",
 'password' => "my_password"
);
 
require_once('/home/sophia/domains/extensions/ConfirmEdit/ConfirmEdit.php');
require_once('/home/sophia/domains/extensions/CheckUser/CheckUser.php');
$wgPutIPinRC = true;
$wgGroupPermissions['checkuser']['checkuser'] = true;
 
$wgDBadminuser="root"; #//$wgDBuser;
$wgDBadminpassword='Huancayo'; #//$wgDBpassword;
$wgShowExceptionDetails = true;
 
$wgExtraLanguageNames = array(
    'cmn' => '正體中文',
    'dlm' => 'Dalmacija',
    'yue' => '香港語',
    'zh' => '汉语',
    'zh-classical' => '文言',
    'zh-cn' => '汉语',
    'zh-hans' => '汉语',
    'zh-hant' => '正體中文',
    'zh-hk' => '香港語',
    'zh-mo' => '中文(澳門)',
    'zh-my' => '华语(马来西亚)',
    'zh-sg' => '华语(新加坡)',
    'zh-tw' => '正體中文',
    'zh-yue' => '香港語');
 
#
# For attaching licensing metadata to pages, and displaying an
# appropriate copyright notice / icon. GNU Free Documentation
# License and Creative Commons licenses are supported so far.
#
$wgEnableCreativeCommonsRdf = true;
$wgRightsPage = ""; # Set to the title of a wiki page: your license/copyright
$wgRightsUrl = "http://creativecommons.org/licenses/by-nc-sa/2.5/";
$wgRightsText = "Attribution-Noncommercial-Share Alike 2.5 ";
$wgRightsIcon = "http://i.creativecommons.org/l/by-nc-sa/2.5/88x31.png";
# $wgRightsCode = "by-nc-sa"; # Not yet used

#
#configure URLs for wiki external image server
#
$wgAllowExternalImagesFrom = array("http://images.uncyc.org/", "http://image.uncyc.org/", "http://commons.uncyclomedia.org/");
#$wgAllowExternalImagesFrom = 'http://images.uncyc.org/';
$wgRepositoryBaseUrl = "http://commons.uncyclomedia.org/wiki/Image:";
$wgSharedUploadDirectory = "/var/images/commons";
$wgSharedUploadPath = "http://images.uncyc.org/commons";
$wgStylePath   = "http://static.uncyc.org/skins";
$wgUploadDirectory = "/var/images/" . $wgLanguageCode;
$wgUploadPath = "http://images.uncyc.org/" . $wgLanguageCode;
$wgLogo = $wgUploadPath . "/b/bc/Wiki.png";
$wgFavicon = $wgUploadPath . "/6/64/Favicon.ico";
$wgShowHostnames = true;
 
#
# add page-refresh tab
#
$wgHooks['SkinTemplateContentActions'][] = 'wfContentRefreshHook';
 
function wfContentRefreshHook( &$content_actions ) {
    global $wgRequest, $wgRequest, $wgTitle;
 
    $action = $wgRequest->getText( 'action' );
 
    if ( $wgTitle->getNamespace() != NS_SPECIAL ) {
        $content_actions['purge'] = array(
            'class' => false,
            'text' => wfMsg( 'refresh' ),
            'href' => $wgTitle->getLocalUrl( 'action=purge' )
        );
    }
    return true;
}
 
?>

Angen cywiro hwn unwaith wedi symud. Estyniadau yn byw ar weinydd carlb (wrth gwrs) - cywiro'r $IP. Hefyd ychwanegu rhai pethau fel $wgBlockAllowsUTEdit = true; am ddim ond i gael hwyl achos eu bod yn ddefnyddiol.

[golygu] Estyniadau a ddefnyddir ar hyn o bryd

Eisiau gosod AbuseFilter os yn bosibl - wedi ceisio ar y wici lleol ac yn dweud 'database query error' - ceisio ar risteq.

[golygu] Gosod hyn yn LocalSettings.php ar gyfer grwpiau defnyddiwr

#Hawliau ychwanegol
$wgAddGroups['sysop'] = array( 'rollback', 'autopatrolled' );
$wgGroupPermissions['rollback']['rollback'] = true;
$wgGroupPermissions['rollback']['patrol'] = true;
$wgGroupPermissions['rollback']['autopatrol'] = true;
$wgGroupPermissions['rollback']['suppressredirect'] = true;
$wgGroupPermissions['autopatrolled']['autopatrol'] = true;
$wgRemoveGroups['sysop'] = array( 'rollback', 'autopatrolled' );
$wgGroupsRemoveFromSelf['sysop'][] = 'sysop';
 
#Gadael i weinyddwyr ddefnyddio'r hidlydd camddefnydd a gadael i bawb ei weld
#$wgGroupPermissions['*']['abusefilter-view'] = true;
#$wgGroupPermissions['*']['abusefilter-log'] = true;
#$wgGroupPermissions['*']['abusefilter-log-detail'] = true;
#$wgGroupPermissions['sysop']['abusefilter-modify'] = true;
#$wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true;
#$wgGroupPermissions['sysop']['abusefilter-private'] = true;
#$wgGroupPermissions['sysop']['abusefilter-revert'] = true;

Cael gwared o'r pethau diangen fel $wgGroupPermissions['sysop']['suppressredirect'] = true;.

Offer personol
View and edit namespaces data

Amrywiolion
Gweithrediadau
Panel llywio
Blwch offer