Index of /galeria/archive/wandystan_2022/git.wandystan.eu/Wandystan/POMF/src/branch/master/
| Name | Last Modified | Size |
|---|---|---|
| 2022-05-19 10:36 | - | |
| 2022-05-19 10:36 | - | |
| 2022-05-19 10:36 | - | |
| 2024-10-17 13:01 | 22k | |
| 2024-10-17 13:01 | 22k | |
| 2024-10-17 13:01 | 23k | |
| 2024-10-17 13:01 | 65k | |
| 2024-10-17 13:01 | 24k | |
| 2024-10-17 13:01 | 24k | |
| 2024-10-17 13:01 | 28k | |
| 2024-10-17 13:01 | 25k | |
| 2024-10-17 13:01 | 54k | |
| 2024-10-17 13:01 | 25k | |
| 2024-10-17 13:01 | 23k | |
| 2024-10-17 13:01 | 23k | |
| 2024-10-17 13:01 | 23k |
<!DOCTYPE html>
<html lang="ko-KR" class="theme-">
<!-- Mirrored from git.wandystan.eu/Wandystan/POMF/src/branch/master/README.md by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 17 May 2022 11:52:58 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack -->
<head data-suburl="">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Wandystan/POMF: Państwowy Ośrodek Magazynowania Faksymili - README.md at master - POMF - Repozytoria Git Mandragoratu Wandystanu </title>
<link rel="manifest" href="../../../../../manifest.json" crossorigin="use-credentials">
<meta name="theme-color" content="#6cc644">
<meta name="author" content="Wandystan" />
<meta name="description" content="POMF - Państwowy Ośrodek Magazynowania Faksymili" />
<meta name="keywords" content="go,git,self-hosted,gitea">
<meta name="referrer" content="no-referrer" />
<meta name="_csrf" content="wMxkwL0DEnNA1d_on07Sk7uWoY46MTY1Mjc4MjMzNDkxNDQwMzEzNw" />
<script>
/*
@licstart The following is the entire license notice for the
JavaScript code in this page.
Copyright (c) 2016 The Gitea Authors
Copyright (c) 2015 The Gogs Authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
---
Licensing information for additional javascript libraries can be found at:
{{StaticUrlPrefix}}/vendor/librejs.html
@licend The above is the entire license notice
for the JavaScript code in this page.
*/
</script>
<script>
window.config = {
AppVer: '1.12.6',
AppSubUrl: '',
StaticUrlPrefix: '',
UseServiceWorker: true ,
csrf: 'wMxkwL0DEnNA1d_on07Sk7uWoY46MTY1Mjc4MjMzNDkxNDQwMzEzNw',
HighlightJS: true,
Minicolors: false,
SimpleMDE: false,
Tribute: false,
U2F: false,
Heatmap: false,
heatmapUser: null,
NotificationSettings: {
MinTimeout: 10000 ,
TimeoutStep: 10000 ,
MaxTimeout: 60000 ,
EventSourceUpdateTime: 10000 ,
},
};
</script>
<link rel="shortcut icon" href="../../../../../img/favicon.png">
<link rel="mask-icon" href="../../../../../img/gitea-safari.svg" color="#609926">
<link rel="fluid-icon" href="../../../../../img/gitea-lg.png" title="Repozytoria Git Mandragoratu Wandystanu">
<link rel="stylesheet" href="../../../../../vendor/assets/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="../../../../../fomantic/semantic.mina8e0.css?v=ea266bd377dbca908b0f88ae20948659">
<link rel="stylesheet" href="../../../../../css/indexa8e0.css?v=ea266bd377dbca908b0f88ae20948659">
<noscript>
<style>
.dropdown:hover > .menu { display: block; }
.ui.secondary.menu .dropdown.item > .menu { margin-top: 0; }
</style>
</noscript>
<style class="list-search-style"></style>
<meta property="og:title" content="POMF" />
<meta property="og:url" content="https://git.wandystan.eu/Wandystan/POMF" />
<meta property="og:description" content="Państwowy Ośrodek Magazynowania Faksymili" />
<meta property="og:type" content="object" />
<meta property="og:image" content="https://git.wandystan.eu/user/avatar/Wandystan/-1" />
<meta property="og:site_name" content="Repozytoria Git Mandragoratu Wandystanu" />
</head>
<body>
<div class="full height">
<noscript>이 웹사이트는 자바스크립트 활성화가 필요합니다.</noscript>
<div class="ui top secondary stackable main menu following bar light">
<div class="ui container" id="navbar">
<div class="item brand" style="justify-content: space-between;">
<a href="../../../../../index.html">
<img class="ui mini image" src="../../../../../img/gitea-sm.png">
</a>
<div class="ui basic icon button mobile-only" id="navbar-expand-toggle">
<i class="sidebar icon"></i>
</div>
</div>
<a class="item " href="../../../../../index.html">홈</a>
<a class="item " href="../../../../../explore/repos.html">탐색</a>
<a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/">도움말</a>
<div class="right stackable menu">
<a class="item" href="../../../../../user/sign_up.html">
<svg class="svg octicon-person" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-person" /></svg> 가입하기
</a>
<a class="item" rel="nofollow" href="../../../../../user/login2dec.html?redirect_to=%2fWandystan%2fPOMF%2fsrc%2fbranch%2fmaster%2fREADME.md">
<svg class="svg octicon-sign-in" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-sign-in" /></svg> 로그인
</a>
</div>
</div>
</div>
<div class="repository file list">
<div class="header-wrapper">
<div class="ui container">
<div class="repo-header">
<div class="ui huge breadcrumb repo-title">
<svg class="svg octicon-repo" width="32" height="32" aria-hidden="true"><use xlink:href="#octicon-repo" /></svg>
<a href="../../../../../Wandystan.html">Wandystan</a>
<div class="divider"> / </div>
<a href="../../../../POMF.html">POMF</a>
</div>
<div class="repo-buttons">
<form method="post" action="https://git.wandystan.eu/Wandystan/POMF/action/watch?redirect_to=%2fWandystan%2fPOMF%2fsrc%2fbranch%2fmaster%2fREADME.md">
<input type="hidden" name="_csrf" value="wMxkwL0DEnNA1d_on07Sk7uWoY46MTY1Mjc4MjMzNDkxNDQwMzEzNw">
<div class="ui labeled button" tabindex="0">
<button type="submit" class="ui compact basic button">
<i class="icon fa-eye-slash"></i>보기
</button>
<a class="ui basic label" href="../../../watchers.html">
2
</a>
</div>
</form>
<form method="post" action="https://git.wandystan.eu/Wandystan/POMF/action/star?redirect_to=%2fWandystan%2fPOMF%2fsrc%2fbranch%2fmaster%2fREADME.md">
<input type="hidden" name="_csrf" value="wMxkwL0DEnNA1d_on07Sk7uWoY46MTY1Mjc4MjMzNDkxNDQwMzEzNw">
<div class="ui labeled button" tabindex="0">
<button type="submit" class="ui compact basic button">
<i class="icon star outline"></i>좋아요
</button>
<a class="ui basic label" href="../../../stars.html">
0
</a>
</div>
</form>
<div class="ui labeled button " tabindex="0">
<a class="ui compact basic button poping up" data-content="로그인하고 Fork 이 창고." rel="nofollow" href="../../../../../user/login4288.html?redirect_to=/repo/fork/2" data-position="top center" data-variation="tiny">
<svg class="svg octicon-repo-forked" width="15" height="15" aria-hidden="true"><use xlink:href="#octicon-repo-forked" /></svg>포크
</a>
<a class="ui basic label" href="../../../forks.html">
0
</a>
</div>
</div>
</div>
</div>
<div class="ui tabs container">
<div class="ui tabular stackable menu navbar">
<a class="active item" href="../../../../POMF.html">
<svg class="svg octicon-code" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-code" /></svg> 코드
</a>
<a class=" item" href="../../../issues.html">
<svg class="svg octicon-issue-opened" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-issue-opened" /></svg> 이슈 <span class="ui gray small label">0</span>
</a>
<a class=" item" href="../../../pulls.html">
<svg class="svg octicon-git-pull-request" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-git-pull-request" /></svg> 풀 리퀘스트 <span class="ui gray small label">0</span>
</a>
<a class=" item" href="../../../releases.html">
<svg class="svg octicon-tag" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-tag" /></svg> 릴리즈 <span class="ui gray small label">0</span>
</a>
<a class=" item" href="../../../activity.html">
<svg class="svg octicon-pulse" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-pulse" /></svg> 활동
</a>
</div>
</div>
<div class="ui tabs divider"></div>
</div>
<div class="ui container">
<div class="ui repo-description">
<div id="repo-desc">
<span class="description">Państwowy Ośrodek Magazynowania Faksymili</span>
<a class="link" href="../../../../../../pomf.wandystan.eu/index.html">https://pomf.wandystan.eu/</a>
</div>
</div>
<div class="ui" id="repo-topics">
</div>
<div class="hide" id="validate_prompt">
<span id="count_prompt">25개 이상의 토픽을 선택하실 수 없습니다.</span>
<span id="format_prompt">Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.</span>
</div>
<div class="ui segments repository-summary">
<div class="ui segment sub-menu repository-menu">
<div class="ui two horizontal center link list">
<div class="item">
<a class="ui" href="../../../commits/branch/master.html"><svg class="svg octicon-history" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-history" /></svg> <b>815</b> 커밋</a>
</div>
<div class="item">
<a class="ui" href="../../../branches/index.html"><svg class="svg octicon-git-branch" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-git-branch" /></svg> <b>1</b> 브렌치</a>
</div>
<div class="item">
<a class="ui" href="#"><svg class="svg octicon-database" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-database" /></svg> <b>1.8 MiB</b></a>
</div>
</div>
</div>
<div class="ui segment sub-menu language-stats-details" style="display: none">
<div class="ui horizontal center link list">
<div class="item">
<i class="color-icon" style="background-color: #4F5D95"></i>
<span class="ui"><b>
PHP
</b> 57.4%</span>
</div>
<div class="item">
<i class="color-icon" style="background-color: #f1e05a"></i>
<span class="ui"><b>
JavaScript
</b> 19.9%</span>
</div>
<div class="item">
<i class="color-icon" style="background-color: #cccccc"></i>
<span class="ui"><b>
Nginx
</b> 10.4%</span>
</div>
<div class="item">
<i class="color-icon" style="background-color: #563d7c"></i>
<span class="ui"><b>
CSS
</b> 5.4%</span>
</div>
<div class="item">
<i class="color-icon" style="background-color: #427819"></i>
<span class="ui"><b>
Makefile
</b> 4.1%</span>
</div>
<div class="item">
<i class="color-icon" style="background-color: #cccccc"></i>
<span class="ui"><b>
기타
</b> 2.8%</span>
</div>
</div>
</div>
<a class="ui segment language-stats">
<div class="bar" style="width: 57.4%; background-color: #4F5D95"> </div>
<div class="bar" style="width: 19.9%; background-color: #f1e05a"> </div>
<div class="bar" style="width: 10.4%; background-color: #cccccc"> </div>
<div class="bar" style="width: 5.4%; background-color: #563d7c"> </div>
<div class="bar" style="width: 4.1%; background-color: #427819"> </div>
<div class="bar" style="width: 2.8%; background-color: #cccccc"> </div>
</a>
</div>
<div class="ui stackable secondary menu mobile--margin-between-items mobile--no-negative-margins">
<div class="fitted item choose reference">
<div class="ui floating filter dropdown custom" data-can-create-branch="false" data-no-results="결과 없음">
<div class="ui basic small compact button" @click="menuVisible = !menuVisible" @keyup.enter="menuVisible = !menuVisible">
<span class="text">
<svg class="svg octicon-git-branch" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-git-branch" /></svg>
브렌치:
<strong>master</strong>
</span>
<i class="dropdown icon"></i>
</div>
<div class="data" style="display: none" data-mode="branches">
<div class="item branch selected" data-url="/Wandystan/POMF/src/branch/master/README.md">master</div>
</div>
<div class="menu transition" :class="{visible: menuVisible}" v-if="menuVisible" v-cloak>
<div class="ui icon search input">
<i class="filter icon"></i>
<input name="search" ref="searchField" v-model="searchTerm" @keydown="keydown($event)" placeholder="브랜치나 태그로 필터...">
</div>
<div class="header branch-tag-choice">
<div class="ui grid">
<div class="two column row">
<a class="reference column" href="#" @click="mode = 'branches'; focusSearchField()">
<span class="text" :class="{black: mode == 'branches'}">
<svg class="svg octicon-git-branch" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-git-branch" /></svg> 브랜치
</span>
</a>
<a class="reference column" href="#" @click="mode = 'tags'; focusSearchField()">
<span class="text" :class="{black: mode == 'tags'}">
<i class="reference tags icon"></i> 태그
</span>
</a>
</div>
</div>
</div>
<div class="scrolling menu" ref="scrollContainer">
<div v-for="(item, index) in filteredItems" :key="item.name" class="item" :class="{selected: item.selected, active: active == index}" @click="selectItem(item)" :ref="'listItem' + index">${ item.name }</div>
<div class="item" v-if="showCreateNewBranch" :class="{active: active == filteredItems.length}" :ref="'listItem' + filteredItems.length">
<a href="#" @click="createNewBranch()">
<div>
<svg class="svg octicon-git-branch" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-git-branch" /></svg>
<strong>${ searchTerm }</strong> 브랜치 생성
</div>
<div class="text small">
from 'master'
</div>
</a>
<form ref="newBranchForm" action="https://git.wandystan.eu/Wandystan/POMF/branches/_new/branch/master" method="post">
<input type="hidden" name="_csrf" value="wMxkwL0DEnNA1d_on07Sk7uWoY46MTY1Mjc4MjMzNDkxNDQwMzEzNw">
<input type="hidden" name="new_branch_name" v-model="searchTerm">
</form>
</div>
</div>
<div class="message" v-if="showNoResults">${ noResults }</div>
</div>
</div>
</div>
<div class="fitted item"><span class="ui breadcrumb repo-path"><a class="section" href="../master.html" title="POMF">POMF</a><span class="divider">/</span><span class="active section" title="README.md">README.md</span></span></div>
<div class="right fitted item" id="file-buttons">
<div class="ui tiny blue buttons">
</div>
</div>
<div class="fitted item">
</div>
<div class="fitted item">
</div>
</div>
<div class="tab-size-8 non-diff-file-content">
<h4 class="file-header ui top attached header">
<div class="file-header-left">
<div class="file-info text grey normal mono">
<div class="file-info-entry">
7.4 KiB
</div>
</div>
</div>
<div class="file-header-right">
<div class="ui right file-actions">
<div class="ui buttons">
<a class="ui button" href="../../../raw/branch/master/README.md">Raw</a>
<a class="ui button" href="../../commit/18d03eb1254029267c6cde16f755cdcf34ed4344/README.html">고유링크</a>
<a class="ui button" href="../../../blame/branch/master/README.html">Blame</a>
<a class="ui button" href="../../../commits/branch/master/README.html">히스토리</a>
</div>
<span class="btn-octicon poping up disabled" data-content="You must fork this repository to make or propose changes to this file." data-position="bottom center" data-variation="tiny inverted"><svg class="svg octicon-pencil" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-pencil" /></svg></span>
<span class="btn-octicon poping up disabled" data-content="You must have write access to make or propose changes to this file." data-position="bottom center" data-variation="tiny inverted"><svg class="svg octicon-trashcan" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-trashcan" /></svg></span>
</div>
</div>
</h4>
<div class="ui attached table unstackable segment">
<div class="file-view markdown markdown">
<h1 id="user-content-pomf">Pomf</h1>
<p><a href="https://travis-ci.org/pomf/pomf" rel="nofollow"><img src="../../../../../../api.travis-ci.org/pomf/passingc55c.svg?branch=master" alt="BuildStatus"/></a>
<a href="https://david-dm.org/pomf/pomf" rel="nofollow"><img src="../../../../../../david-dm.org/pomf/pomf.html" alt="DependencyStatus"/></a>
<a href="https://david-dm.org/pomf/pomf#info=devDependencies" rel="nofollow"><img src="../../../../../../david-dm.org/pomf/pomf/dev-status.html" alt="devDependencyStatus"/></a>
<a href="https://raw.githubusercontent.com/pomf/pomf/master/LICENSE" rel="nofollow"><img src="../../../../../../img.shields.io/badge/license-MIT-blue.svg" alt="MITlicensed"/></a>
<a href="http://pomf.readthedocs.io/en/latest/?badge=latest" rel="nofollow"><img src="https://readthedocs.org/projects/pomf/badge/?version=latest" alt="Documentation Status"/></a></p>
<p>Pomf is a simple file uploading and sharing platform.</p>
<h2 id="user-content-features">Features</h2>
<ul>
<li>One click uploading, no registration required</li>
<li>A minimal, modern web interface</li>
<li>Drag & drop supported</li>
<li>Upload API with multiple response choices
<ul>
<li>JSON</li>
<li>HTML</li>
<li>Text</li>
<li>CSV</li>
</ul>
</li>
<li>Supports <a href="https://getsharex.com/" rel="nofollow">ShareX</a> and other screenshot tools</li>
</ul>
<h3 id="user-content-demo">Demo</h3>
<p>See the real world example at <a href="https://sugoi.vidyagam.es/" rel="nofollow">sugoi.vidyagam.es</a>.</p>
<h2 id="user-content-requirements">Requirements</h2>
<p>Original development environment is Nginx + PHP5.5 + MySQL, but is confirmed to
work with Apache 2.4 and newer PHP versions. Should work with any other
PDO-compatible database.</p>
<h2 id="user-content-install">Install</h2>
<p>For the purposes of this guide, we won’t cover setting up Nginx, PHP, MySQL,
Node, or NPM. So we’ll just assume you already have them all running well.</p>
<h3 id="user-content-compiling">Compiling</h3>
<p>First you must get a copy of the pomf code. To do so, clone this git repo.
You will need to recursively clone the repo to get the required PHP submodule,
and the optional user panel submodule.</p>
<pre><code class="language-bash">git clone --recursive https://github.com/pomf/pomf
</code></pre>
<p>If you don’t want either of the submodules run the following command,</p>
<pre><code class="language-bash">git clone https://github.com/pomf/pomf
</code></pre>
<p>Assuming you already have Node and NPM working, compilation is easy. If you would like any additional submodules, or to exclude the default PHP submodule, use the <code>MODULES="..."</code> variable.</p>
<p>Run the following commands to do so.</p>
<pre><code class="language-bash">cd pomf/
make
# alternatively
make MODULES="" # compile no submodules; exclude the default php backend module
make MODULES="php moe" # compile the php and moe submodules
#
make install
</code></pre>
<p>OR</p>
<pre><code class="language-bash">make install DESTDIR=/desired/path/for/site
</code></pre>
<p>After this, the pomf site is now compressed and set up inside <code>dist/</code>, or, if specified, <code>DESTDIR</code>.</p>
<h2 id="user-content-configuring">Configuring</h2>
<p>Front-end related settings, such as the name of the site, and maximum allowable
file size, are found in <code>dist.json</code>. Changes made here will
only take effect after rebuilding the site pages. This may be done by running
<code>make</code> from the root of the site directory.</p>
<p>Back-end related settings, such as database configuration, and path for uploaded files, are found in <code>static/php/includes/settings.inc.php</code>. Changes made here take effect immediately.</p>
<p>If you intend to allow uploading files larger than 2 MB, you may also need to
increase POST size limits in <code>php.ini</code> and webserver configuration. For PHP,
modify <code>upload_max_filesize</code> and <code>post_max_size</code> values. The configuration
option for nginx webserver is <code>client_max_body_size</code>.</p>
<p>Example nginx configs can be found in confs/.</p>
<h2 id="user-content-using-sqlite-as-db-engine">Using SQLite as DB engine</h2>
<p>We need to create the SQLite database before it may be used by pomf.
Fortunately, this is incredibly simple.</p>
<p>First create a directory for the database, e.g. <code>mkdir /var/db/pomf</code>.<br/>
Then, create a new SQLite database from the schema, e.g. <code>sqlite3 /var/db/pomf/pomf.sq3 -init /home/pomf/sqlite_schema.sql</code>.
Then, finally, ensure the permissions are correct, e.g.</p>
<pre><code class="language-bash">chown nginx:nginx /var/db/pomf
chmod 0750 /var/db/pomf
chmod 0640 /var/db/pomf/pomf.sq3
</code></pre>
<p>Finally, edit <code>php/includes/settings.inc.php</code> to indicate this is the database engine you would like to use. Make the changes outlined below</p>
<pre><code class="language-php">define('POMF_DB_CONN', '[stuff]'); ---> define('POMF_DB_CONN', 'sqlite:/var/db/pomf/pomf.sq3');
define('POMF_DB_USER', '[stuff]'); ---> define('POMF_DB_USER', null);
define('POMF_DB_PASS', '[stuff]'); ---> define('POMF_DB_PASS', null);
</code></pre>
<p><em>NOTE: The directory where the SQLite database is stored, must be writable by the web server user</em></p>
<h3 id="user-content-apache">Apache</h3>
<p>If you are running Apache and want to compress your output when serving files,
add to your <code>.htaccess</code> file:</p>
<pre><code>AddOutputFilterByType DEFLATE text/html text/plain text/css application/javascript application/x-javascript application/json
</code></pre>
<p>Remember to enable <code>deflate_module</code> and <code>filter_module</code> modules in your Apache
configuration file.</p>
<h3 id="user-content-migrating-from-mysql-to-sqlite">Migrating from MySQL to SQLite</h3>
<p>,
Compared to SQLite, MySQL is relatively complicated to administer, brings in many unneeded dependencies, and consumes more resources. Additonally, as a network service, poorly configured installations have the potential
to pose a security risk.</p>
<p>For these reasons, you may wish to use SQLite rather than MySQL.</p>
<p>Fortunately, it is incredibly simple to migrate your database. This may be done on a live server, if you desire, and requires zero downtime.</p>
<p>The process described below involves running these commands on a live server. Nothing done here affects your main site, until running the very last command, which is done after verifying there are no issues.</p>
<p>No changes described here are destructive, and are easily reverted. They only have the potential to cause uploading to fail gracefully, and will not affect downloading.</p>
<p>Run the following commands as root, to dump your database, and make a SQLite database with the contents.</p>
<pre><code class="language-bash">mkdir /var/db/pomf
wget -O /tmp/m2s https://github.com/dumblob/mysql2sqlite/raw/master/mysql2sqlite.sh
mysqldump -u OLD_DB_USER -p OLD_DB_PASS pomf | sh /tmp/m2s | sqlite3 /var/db/pomf/sq3
rm /tmp/m2s
chown -R nginx:nginx /var/db/pomf #replace user as appropriate
chmod 0750 /var/db/pomf && chmod 0640 /var/db/pomf/sq3
</code></pre>
<p>Edit the file <code>php/includes/settings.inc.php</code>, in your <strong>source directory</strong>, making the changes outlined below. Note, changing the second two lines is optional, as they are simply ignored when using SQLite.</p>
<pre><code class="language-php">define('POMF_DB_CONN', '[stuff]'); ---> define('POMF_DB_CONN', 'sqlite:/var/db/pomf/pomf.sq3');
define('POMF_DB_USER', '[stuff]'); ---> define('POMF_DB_USER', null);
define('POMF_DB_PASS', '[stuff]'); ---> define('POMF_DB_PASS', null);
</code></pre>
<p>Then, run <code>make DESTDIR=/path/to/main_site/testing_dir</code> (note the <em>testing_dir</em> component) to rebuild the website, and copy it into place, in a new testing subdirectory.</p>
<p>Now, navigate to this subdirectory in your web browser, e.g. <a href="http://example.com/testing_dir" rel="nofollow">http://example.com/testing_dir</a>, and verify that uploading works fine. If so, excellent! You may rerun <code>make DESTDIR=/path/to/main_site</code> to update your main site.</p>
<p>All done! You may disable or uninstall MySQL if you wish.</p>
<h2 id="user-content-getting-help">Getting help</h2>
<p>The Pomf community gathers on IRC. You can also email the maintainer for help.</p>
<ul>
<li>IRC (users): <code>#pomfret</code> on Rizon (<code>irc.rizon.net</code>)</li>
</ul>
<h2 id="user-content-contributing">Contributing</h2>
<p>We’d really like if you can take some time to make sure your coding style is
consistent with the project. Pomf follows <a href="http://www.php-fig.org/psr/psr-2/" rel="nofollow">PHP
PSR-2</a> and <a href="https://github.com/airbnb/javascript/tree/es5-deprecated/es5" rel="nofollow">Airbnb JavaScript
(ES5)</a> (<code>airbnb/legacy</code>)
coding style guides. We use ESLint and PHPCS tools to enforce these standards.</p>
<p>You can also help by sending us feature requests or writing documentation and
tests.</p>
<p>Thanks!</p>
<h2 id="user-content-credits">Credits</h2>
<p>Pomf was created by Eric Johansson and Peter Lejeck for
<a href="http://pomf.se/" rel="nofollow">Pomf.se</a>. The software is currently maintained by the
community.</p>
<h2 id="user-content-license">License</h2>
<p>Pomf is free software, and is released under the terms of the Expat license. See
<code>LICENSE</code>.</p>
</div>
</div>
</div>
<script>
function submitDeleteForm() {
var message = prompt("delete_confirm_message\n\ndelete_commit_summary", "Delete ''");
if (message != null) {
$("#delete-message").val(message);
$("#delete-file-form").submit()
}
}
</script>
</div>
</div>
</div>
<footer>
<div class="ui container">
<div class="ui left">
Gitea 제공 버전: 1.12.6 페이지: <strong>14ms</strong> 템플릿: <strong>1ms</strong>
</div>
<div class="ui right links">
<div class="ui language bottom floating slide up dropdown link item">
<i class="world icon"></i>
<div class="text">한국어</div>
<div class="menu">
<a lang="ko-KR" class="item active selected" href="#">한국어</a>
<a lang="en-US" class="item " href="README4cda.html?lang=en-US">English</a>
<a lang="zh-CN" class="item " href="READMEc425.html?lang=zh-CN">简体中文</a>
<a lang="zh-HK" class="item " href="README3b4e.html?lang=zh-HK">繁體中文(香港)</a>
<a lang="zh-TW" class="item " href="READMEabd4.html?lang=zh-TW">繁體中文(台灣)</a>
<a lang="de-DE" class="item " href="README7be3.html?lang=de-DE">Deutsch</a>
<a lang="fr-FR" class="item " href="READMEa61c.html?lang=fr-FR">français</a>
<a lang="nl-NL" class="item " href="README3229.html?lang=nl-NL">Nederlands</a>
<a lang="lv-LV" class="item " href="READMEa0b0.html?lang=lv-LV">latviešu</a>
<a lang="ru-RU" class="item " href="README27d6.html?lang=ru-RU">русский</a>
<a lang="uk-UA" class="item " href="READMEf1f7.html?lang=uk-UA">Українська</a>
<a lang="ja-JP" class="item " href="READMEdd18.html?lang=ja-JP">日本語</a>
<a lang="es-ES" class="item " href="READMEfeec.html?lang=es-ES">español</a>
<a lang="pt-BR" class="item " href="README045b.html?lang=pt-BR">português do Brasil</a>
<a lang="pt-PT" class="item " href="READMEd68d.html?lang=pt-PT">Português de Portugal</a>
<a lang="pl-PL" class="item " href="READMEa33c.html?lang=pl-PL">polski</a>
<a lang="bg-BG" class="item " href="README97de.html?lang=bg-BG">български</a>
<a lang="it-IT" class="item " href="READMEcfef.html?lang=it-IT">italiano</a>
<a lang="fi-FI" class="item " href="README7f73.html?lang=fi-FI">suomi</a>
<a lang="tr-TR" class="item " href="READMEb065.html?lang=tr-TR">Türkçe</a>
<a lang="cs-CZ" class="item " href="READMEb805.html?lang=cs-CZ">čeština</a>
<a lang="sr-SP" class="item " href="README1caa.html?lang=sr-SP">српски</a>
<a lang="sv-SE" class="item " href="README981f.html?lang=sv-SE">svenska</a>
</div>
</div>
<a href="../../../../../vendor/librejs.html" data-jslicense="1">JavaScript licenses</a>
<a href="../../../../../api/swagger.html">API</a>
<a target="_blank" rel="noopener noreferrer" href="https://gitea.io/">웹 사이트</a>
<span class="version">Go1.15.3</span>
</div>
</div>
</footer>
<script src="../../../../../js/jquerya8e0.js?v=ea266bd377dbca908b0f88ae20948659"></script>
<script src="../../../../../fomantic/semantic.mina8e0.js?v=ea266bd377dbca908b0f88ae20948659"></script>
<script src="../../../../../js/indexa8e0.js?v=ea266bd377dbca908b0f88ae20948659"></script>
</body>
<!-- Mirrored from git.wandystan.eu/Wandystan/POMF/src/branch/master/README.md by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 17 May 2022 11:53:03 GMT -->
</html>
Proudly Served by LiteSpeed Web Server at vonthorn.sarmacja.org Port 443