# \#php

**URL:** https://forum.ynm.hu/tag/php/1.md

[Legutóbbi](https://forum.ynm.hu/latest.md) · [Kategóriák](https://forum.ynm.hu/categories.md) · [Címkék](https://forum.ynm.hu/tags.md)

---

## [PostfixAdmin Error templates\_c ( Debian12, Webmin, Virtualmin, Dovecot, Postfix)](https://forum.ynm.hu/t/postfixadmin-error-templates-c-debian12-webmin-virtualmin-dovecot-postfix/294)

<div class="topic-metadata">

**Author:** [@markus](https://forum.ynm.hu/u/markus)\
**Válaszok:** 1\
**Legutóbb frissítve:** [2025. május 3. 16:40 UTC](https://forum.ynm.hu/t/postfixadmin-error-templates-c-debian12-webmin-virtualmin-dovecot-postfix/294 "2025-05-03T16:40:06Z")

</div>

ERROR: the templates\_c directory doesn’t exist or isn’t writeable for the webserver mail@ynm:~/postfixadmin$ ls -ld templates\_c/ drwxr-xr-x 2 www-data www-data 4096 May 3 14:31 templates\_c/ mail@ynm:~/postfixadmin$ …

---

## [YnM Media & YnM Login (Jellyfin 10.10.7 & KeyCloak 26.2.0)](https://forum.ynm.hu/t/ynm-media-ynm-login-jellyfin-10-10-7-keycloak-26-2-0/291)

<div class="topic-metadata">

**Author:** [@markus](https://forum.ynm.hu/u/markus)\
**Válaszok:** 0\
**Legutóbb frissítve:** [2025. április 20. 17:33 UTC](https://forum.ynm.hu/t/ynm-media-ynm-login-jellyfin-10-10-7-keycloak-26-2-0/291 "2025-04-20T17:33:26Z")

</div>

In the Jellyfin administration UI, under “General”, there is a “Branding” section. In that section, add the following code in the “Login disclaimer” block: Login to Jellyfin as an admin. Click on the :gear: Admin Dash…

---

## [YnM Statisztika Sopel py](https://forum.ynm.hu/t/ynm-statisztika-sopel-py/284)

<div class="topic-metadata">

**Author:** [@markus](https://forum.ynm.hu/u/markus)\
**Válaszok:** 0\
**Legutóbb frissítve:** [2025. február 23. 11:43 UTC](https://forum.ynm.hu/t/ynm-statisztika-sopel-py/284 "2025-02-23T11:43:10Z")

</div>

\*\*Live \*\* YnM Statisztika \<link href="/css/ynm.statisztika.css" rel="stylesheet"\> \<?php // PHP code to process log files and generate $nodes and $links $logFiles = glob("/home/ai/.sopel/szobak/magyar-\*.log"); // Collec…

---

## [YnM Ora Sopel py](https://forum.ynm.hu/t/ynm-ora-sopel-py/287)

<div class="topic-metadata">

**Author:** [@markus](https://forum.ynm.hu/u/markus)\
**Válaszok:** 0\
**Legutóbb frissítve:** [2025. február 23. 15:12 UTC](https://forum.ynm.hu/t/ynm-ora-sopel-py/287 "2025-02-23T15:12:40Z")

</div>

from sopel import plugin import time from threading import Timer from datetime import datetime, timedelta import json import os # Emlékeztetők tárolásának fájl elérési útja REMINDER\_FILE = '/home/ai/.sopel/plugins/notif…

---

## [YnM Xp Plugin py](https://forum.ynm.hu/t/ynm-xp-plugin-py/286)

<div class="topic-metadata">

**Author:** [@markus](https://forum.ynm.hu/u/markus)\
**Válaszok:** 0\
**Legutóbb frissítve:** [2025. február 23. 14:23 UTC](https://forum.ynm.hu/t/ynm-xp-plugin-py/286 "2025-02-23T14:23:36Z")

</div>

""" Szerzői jog: 2024, YnM Szerkesztette: Markus (markus@ynm.hu) Minden jog fenntartva. """ from sopel import plugin import sqlite3 import os DB\_FILE = os.path.expanduser("/home/ai/.sopel/xp.db") # Frissített rangok R…

---

## [YnM Ai ynmweb.py](https://forum.ynm.hu/t/ynm-ai-ynmweb-py/278)

<div class="topic-metadata">

**Author:** [@markus](https://forum.ynm.hu/u/markus)\
**Válaszok:** 0\
**Legutóbb frissítve:** [2025. február 1. 08:56 UTC](https://forum.ynm.hu/t/ynm-ai-ynmweb-py/278 "2025-02-01T08:56:54Z")

</div>

import sopel import requests import time import threading import os import logging import traceback import sys from datetime import timedelta class YnMWebPlugin: def \_\_init\_\_(self, bot): self.bot = bot …

---

## [Service Uptime Checker php](https://forum.ynm.hu/t/service-uptime-checker-php/43)

<div class="topic-metadata">

**Author:** [@markus](https://forum.ynm.hu/u/markus)\
**Válaszok:** 3\
**Legutóbb frissítve:** [2024. december 24. 20:52 UTC](https://forum.ynm.hu/t/service-uptime-checker-php/43 "2024-12-24T20:52:31Z")

</div>

V 1.1 \<?php /\* \* Szerzői jog: 2024, YnM \* Szerkesztette: Markus (markus@ynm.hu) \* Minden jog fenntartva. \*/ function getUptime($service) { $cacheDir = "cache/"; $cacheFile = "{$cacheDir}{$service}\_uptime.ca…

---

## [PHP Running time show](https://forum.ynm.hu/t/php-running-time-show/30)

<div class="topic-metadata">

**Author:** [@markus](https://forum.ynm.hu/u/markus)\
**Válaszok:** 0\
**Legutóbb frissítve:** [2024. november 2. 22:20 UTC](https://forum.ynm.hu/t/php-running-time-show/30 "2024-11-02T22:20:08Z")

</div>

\<?php function getUptime($service) { $cacheFile = "cache/{$service}\_uptime.cache"; // Cache fájl $lastCheckFile = "cache/last\_check\_time.cache"; // Utolsó ellenőrzés ideje $cacheTime = 600; // 10 perc cache i…
