Comments Module Settings
Design and Skin Customization
Nice one. Keep that guy in ukraines number
Send him to the open jobs board when you've finished with him:https://www.jamroom.net/job/open
Nice one. Keep that guy in ukraines number
Send him to the open jobs board when you've finished with him:<?php
/**
* @copyright You at wherever
*/
// make sure we are not being called directly
defined('APP_DIR') or exit();
/**
* meta
*/
function xxSomething_meta()
{
$_tmp = array(
'name' => 'Something',
'url' => 'something',
'version' => '1.0.0',
'developer' => 'Nobody, ©' . strftime('%Y'),
'description' => 'A module created to do somthing',
'license' => 'mpl',
'category' => 'site'
);
return $_tmp;
}
/**
* init
*/
function xxSomething_init()
{
jrCore_register_event_listener('jrCore', 'daily_maintenance', 'xxSomething_daily_maintenance_listener');
return true;
}
/**
* xxSomething_daily_maintenance_listener
* @param $_data array incoming data array from jrCore_save_media_file()
* @param $_user array current user info
* @param $_conf array Global config
* @param $_args array additional info about the module
* @param $event string Event Trigger name
* @return array
*/
function xxSomething_daily_maintenance_listener($_data, $_user, $_conf, $_args, $event)
{
// do whatever you want to here......
return $_data;
}
function jrCore_checktype_domain($input, $desc_only = false, $type_only = false)
{
if ($desc_only) {
return "a valid domain name (no www)";
}
if ($type_only) {
return 'string';
}
// Make sure we get a good domain.tld
if (strpos(' ' . $input, '.') && preg_match('/^[-a-z0-9]+\.[a-z]{2,14}$/', jrCore_str_to_lower($input))) {
return true;
}
// or one of those double dot kinds uwe.ac.uk
if (strpos(' ' . $input, '.') && preg_match('/^[-a-z0-9]+\.[a-z]{2,14}+\.[a-z]{2,14}$/', jrCore_str_to_lower($input))) {
return true;
}
return false;
}