Example #1
0
function reduce_entities($str)
{
    //Convert the submitted content back to HTML
    $str = stripslashes($str);
    $str = html_entity_decode($str, ENT_QUOTES);
    $str = string_convert($str, 1);
    return $str;
}
Example #2
0
function add_client_template()
{
    global $gbl, $login, $ghtml;
    $arr = array(0 => "Unlimited Hosting Plan", 1 => "500MB Hosting Plan");
    foreach ($arr as $key => $val) {
        $nname = string_convert($val);
        $clienttemplate = new Clienttemplate(null, null, $nname);
        $clienttemplate->initThisDef();
        client_priv($clienttemplate->priv, $key);
        $res['nname'] = $nname;
        $res['parent_clname'] = 'client-admin';
        $clienttemplate->create($res);
        //	$clienttemplate->priv = $priv;
        $login->addToList("clienttemplate", $clienttemplate);
    }
}