Skip to content

Instantly share code, notes, and snippets.

View ammaridris's full-sized avatar

Ammar Idris ammaridris

View GitHub Profile
extension=curl
extension=fileinfo
extension=gd
extension=mysqli
extension=openssl
extension=pdo_mysql
extension=soap
extension=sockets
extension=sodium
extension=sqlite3
LoadModule rewrite_module modules/mod_rewrite.so
<Directory "${SRVROOT}/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
LoadModule php_module "C:/php/php8apache2_4.dll"
PHPIniDir "C:/php"
<IfModule php_module>
DirectoryIndex index.html default.php index.php
AddHandler application/x-httpd-php .php
</IfModule>
ServerSignature Off
ServerTokens Prod
<button type="button" class="header-item-content dms-button" style="border: none;">
<span class="header-item-icon">
<span style="margin: 3px; font-size: 1.2rem; transition: all .6s ease;">🌓</span>
</span>
<span class="header-item-text">Dark Mode Switcher</span>
</button>
<script>
(() => {
'use strict';
INI_MODULE_PERTAMA_SAYA="This is My First Module"
HARI_INI="Today's date"
<?php
defined('_JEXEC') or die('Restricted access');
$servername = "localhost";
$username = "root";
$password = "root";
$dbname = "SistemPendaftaranSyarikat";
$conn = new mysqli($servername, $username, $password, $dbname);
require_once('mod_senarai_'.$params->get('senarai').'.php');
<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="4.0" client="site" method="upgrade">
<name>Modul Memaparkan Senarai Data Dari Database Luar</name>
<author>Ammar Idris</author>
<creationDate>November 2022</creationDate>
<copyright>Copyright (C) AIEAC. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.ammaridris.com</authorUrl>
<version>1.0</version>
<?php defined('_JEXEC') or die; ?>
<ul class="<?php echo $params->get('inline', 1) ? 'lang-inline' : 'lang-block';?>">
<?php foreach($list as $language):?>
<?php if ($params->get('show_active', 0) || !$language->active):?>
<li class="<?php echo $language->active ? 'lang-active' : '';?>" dir="<?php echo $language->rtl ? 'rtl' : 'ltr' ?>">
<?php if ($language->display) { ?>
<a href="<?php echo $language->link;?>" class="uk-button uk-button-secondary uk-button-small uk-text-uppercase uk-text-bold uk-text-small">
<?php if ($params->get('image', 1)):?>
<?php echo JHtml::_('image', $imagesPath.$language->image.'.'.$imagesType, $language->title_native, array('title'=>$language->title_native), $relativePath);?>
<?php
use Joomla\CMS\Language\Text;
// Config
$config->addAlias('~logo', '~theme.logo');
// Link
$attrs_link = [];
$attrs_link['href'] = $config('~theme.site_url');
.uk-breadcrumb li:first-child a:before {
display: inline-block;
font-family: "FontAwesome";
content: "\f015";
padding-right: 5px;
}
/* Nama class tu boleh ubah ikut kesesuaian nama class dalam template */
/* font-family tu juga boleh ubah */