Podrías explicarte mejor.
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú
<?php
/**
*
* Author: ArmyZ Rdz
* Comaptible with: MyBB 1.4
* Website: http://www.generalzone.net
* License: GNU/GPL
* Utilicelo a su propio riesgo
* Disfrutalo =D
*
*/
if(!defined('IN_MYBB'))
{
die();
}
$plugins->add_hook("global_start", "imgflotante");
function imgflotante_info(){
return array(
"name" => "Imagen Flotante Para Invitados",
"description" => "Este plugin muestra una imagen flotante para los invitados",
"website" => "http://www.generalzone.net",
"author" => "ArmyZ Rodriguez",
"authorsite" => "http://www.generalzone.net",
"version" => "1.2.1",
"compatibility" => "14*,16*",
"guid" => ""
);
}
function imgflotante_activate(){
global $db;
include MYBB_ROOT."/inc/adminfunctions_templates.php";
find_replace_templatesets("header", "#".preg_quote('{$bannedwarning}')."#i", '{\$bannedwarning}{\$imgflotante}');
$imgflotante_group = array(
'gid' => 'NULL',
'name' => 'imgflotante',
'title' => 'Imagen flotante para invitados',
'description' => 'Settings For The imgflotante Plugin',
'disporder' => "1",
'isdefault' => 'no',
);
$db->insert_query('settinggroups', $imgflotante_group);
$gid = $db->insert_id();
$imgflotante_setting_1 = array(
'sid' => 'NULL',
'name' => 'enabled_imgflotante',
'title' => 'Activado/Desactivado',
'description' => '',
'optionscode' => 'yesno',
'value' => '1',
'disporder' => 1,
'gid' => intval($gid),
);
$db->insert_query('settings', $imgflotante_setting_1);
$imgflotante_setting_2 = array(
'sid' => 'NULL',
'name' => 'imgflotante_location',
'title' => 'Arriva o Abajo?',
'description' => 'puedes poner "fromtop" para colocar la imagen arriva o "frombottom" para colocarla abajo',
'optionscode' => 'text',
'value' => 'fromtop',
'disporder' => 2,
'gid' => intval($gid),
);
$db->insert_query('settings', $imgflotante_setting_2);
$imgflotante_setting_3 = array(
'sid' => 'NULL',
'name' => 'imgflotante_img',
'title' => 'Ruta de la Imagen',
'description' => 'escribe la ruta nueva de tu imagen que se mostrara a los invitados...',
'optionscode' => 'text',
'value' => 'images/ifid.png',
'disporder' => 3,
'gid' => intval($gid),
);
$db->insert_query('settings', $imgflotante_setting_3);
$imgflotante_setting_4 = array(
'sid' => 'NULL',
'name' => 'imgflotante_img_close',
'title' => 'Ruta de la Imagen para cerrar',
'description' => 'escribe la ruta nueva de tu imagen que se mostrara a los invitados donde se cerrara...',
'optionscode' => 'text',
'value' => 'images/ifii.png',
'disporder' => 4,
'gid' => intval($gid),
);
$db->insert_query('settings', $imgflotante_setting_4);
rebuild_settings();
}
function imgflotante_deactivate(){
global $db;
include MYBB_ROOT."/inc/adminfunctions_templates.php";
find_replace_templatesets("header", "#".preg_quote('{$imgflotante}')."#i", '', 0);
$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name IN ('imgflotante_location','enabled_imgflotante','imgflotante_img','imgflotante_img_close')");
$db->query("DELETE FROM ".TABLE_PREFIX."settinggroups WHERE name='imgflotante'");
rebuild_settings();
}
function imgflotante()
{
global $mybb;
if ($mybb->settings['enabled_imgflotante'] == 1)
{
if($mybb->user['usergroup']==1)
{
$url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
if($url!='AQUI PONES LA URL DEL REGISTRO EJ: HTTP://WWW.TUWEB.COM/REGISTRO'){
global $templates,$settings,$imgflotante;
$imgflotante = '<script type="text/javascript" src="jscripts/imgflotante.js?ver=1400"></script>
<script type="text/javascript">
var verticalpos = "'.$mybb->settings['imgflotante_location'].'";
</script>
<style type="text/css">#topbar{position:absolute;border: 0px solid white;padding: 5px;background-color: transparent;width: 450px;visibility: hidden;z-index: 400;}</style><div id="topbar"><a href="'.$mybb->settings['bburl'].'/member.php?action=register"><img src="'.$mybb->settings['imgflotante_img'].'"" alt="Registrarte!" border="0" /></a><a href="#" onclick="closebar(); return false"><img src="'.$mybb->settings['imgflotante_img_close'].'" alt="Cerrar" border="0" /></a></div>';
}
}
}
}
?>
$rg=mysql_query(" SELECT * FROM ventasunidad",$conexion) or die("Problemas en el select:".mysql_error());
while($rs=mysql_fetch_array($rg))
{
$nombre=$rs['Nombre'];
$cantidadr=$rs['cantidaduni'];
$rt=mysql_query("select * from articulos where Nombre='.$nombre.'",$conexion) or die("Problemas en el select:".mysql_error());
if ($rg=mysql_fetch_array($rt))
{
$existenciat=$rg['existencia']-$cantidadr;
}
$registros=mysql_query("update articulos set existencia=' .$existenciat.' where Nombre='.$nombre.'",$conexion) or die("Problemas en el select:".mysql_error());
}
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/idioma\.php
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^(.+)\.dominio\.com
RewriteRule .* /idioma.php?id=%1 [L]
<?
$idioma=$_GET['id'];
$query=mysql_query('SELECT * FROM anuncios WHERE idioma="'.$idioma.'"');
?>
<?
$clave="TU CONTRASEÑA";
if($_GET["password"]!=$clave){
echo '<form method=get name=validacion>Introduzca la clave: <input type="text" name="password"/><input type=submit value="Enviar" name=validar/></form>';
}else{
?>
TU PAGINA
<? } ?>
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect /usepmtimer
C:\wubildr.mbr = "Ubuntu"