当前位置: 首页>>代码示例>>PHP>>正文


PHP mailuser函数代码示例

本文整理汇总了PHP中mailuser函数的典型用法代码示例。如果您正苦于以下问题:PHP mailuser函数的具体用法?PHP mailuser怎么用?PHP mailuser使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了mailuser函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: mysql_die

         } else {
             // If enterprise in table
             if ($db->next_record()) {
                 if ($db->f("user") == $auth->auth["uname"] || $perm->have_perm("admin")) {
                     // Insert new products
                     $tables = "products";
                     $set = "entid_pro='{$id}',category_pro='{$category_pro}',name_pro='{$name_pro}',description_pro='{$description_pro}',homepage_pro='{$homepage_pro}',status_pro='A',modification_pro=NOW(),creation_pro=NOW()";
                     if (!$db->query("INSERT {$tables} SET {$set}")) {
                         mysql_die($db);
                     }
                     // Select and show new/updated enterprises with products
                     entbyentid($db, $id);
                     probyentid($db, $id);
                     if ($ml_notify) {
                         $msg = "insert product \"{$name_pro}\" by " . $auth->auth["uname"] . ".";
                         mailuser("admin", "insert product", $msg);
                     }
                 } else {
                     $be->box_full($t->translate("Error"), $t->translate("Access denied"));
                 }
                 // If enterprise is not in table
             } else {
                 $be->box_full($t->translate("Error"), $t->translate("Enterprise") . " (ID: {$id}) " . $t->translate("does not exist") . ".");
             }
         }
     } else {
         $be->box_full($t->translate("Error"), $t->translate("No Description specified"));
     }
 } else {
     $be->box_full($t->translate("Error"), $t->translate("No Name specified"));
 }
开发者ID:BackupTheBerlios,项目名称:sourcebiz,代码行数:31,代码来源:proins.php

示例2: prayerlist_mod

function prayerlist_mod($perpage)
{
    global $list_prefix;
    //this is a module so we should already know if the user is logged in.
    //start main code here.
    //lets search for request that expire prior to right now.
    $sql = "SELECT * FROM " . $list_prefix . "prayer_list WHERE `expired` = '0' AND `expiredate` < '" . time() . "';";
    $result = db_query($sql);
    @($rows = db_num_rows($result));
    $j = 0;
    while ($j < $rows) {
        $row = db_fetch_array($result);
        //mail the user here if they are not anonymous
        if (0 != strcmp($row['requested_by'], 'anonymous')) {
            mailuser($row['requested_by'], $row);
        }
        //We need to change this to make the request historical rather than deleting it.
        $sql = "UPDATE " . $list_prefix . "prayer_list SET `expired` = '1' WHERE `id`='" . $row['id'] . "';";
        //end of change.
        $result2 = db_query($sql);
        $j++;
    }
    $MOD['title'] = "Prayer Request";
    $MOD['content'] = showlist($perpage);
    return $MOD;
}
开发者ID:BackupTheBerlios,项目名称:fishcms-svn,代码行数:26,代码来源:prayerlist.mod.php

示例3: mysql_die

                        }
                        if ($action == "erase" && !$perm->have_perm("admin")) {
                            $be->box_full($t->translate("Error"), $t->translate("Access denied"));
                        } else {
                            if (!$db->query($query)) {
                                mysql_die($db);
                            } else {
                                if ($action == "erase") {
                                    $be->box_full($t->translate("Erase"), $t->translate("Customer is erased"));
                                } else {
                                    entbycusid($db, $id);
                                    cusbycusid($db, $id);
                                }
                                if ($ml_notify) {
                                    $msg = "{$action} customer (ID: {$id}) by " . $auth->auth["uname"] . ".";
                                    mailuser("admin", "{$action} customer", $msg);
                                }
                            }
                        }
                    } else {
                        $be->box_full($t->translate("Error"), $t->translate("No Description specified"));
                    }
                } else {
                    $be->box_full($t->translate("Error"), $t->translate("No Name specified"));
                }
            }
        } else {
            $be->box_full($t->translate("Error"), $t->translate("Access denied"));
        }
    }
} else {
开发者ID:BackupTheBerlios,项目名称:sourcebiz,代码行数:31,代码来源:cusupd.php

示例4: mysql_die

                        }
                        if ($action == "erase" && !$perm->have_perm("admin")) {
                            $be->box_full($t->translate("Error"), $t->translate("Access denied"));
                        } else {
                            if (!$db->query($query)) {
                                mysql_die($db);
                            } else {
                                if ($action == "erase") {
                                    $be->box_full($t->translate("Erase"), $t->translate("Product is erased"));
                                } else {
                                    entbyproid($db, $id);
                                    probyproid($db, $id);
                                }
                                if ($ml_notify) {
                                    $msg = "{$action} product (ID: {$id}) by " . $auth->auth["uname"] . ".";
                                    mailuser("admin", "{$action} product", $msg);
                                }
                            }
                        }
                    } else {
                        $be->box_full($t->translate("Error"), $t->translate("No Description specified"));
                    }
                } else {
                    $be->box_full($t->translate("Error"), $t->translate("No Name specified"));
                }
            }
        } else {
            $be->box_full($t->translate("Error"), $t->translate("Access denied"));
        }
    }
} else {
开发者ID:BackupTheBerlios,项目名称:sourcebiz,代码行数:31,代码来源:proupd.php

示例5: trim

        $deb = trim($deb);
        $tgz = trim($tgz);
        $cvs = trim($cvs);
        $screenshots = trim($screenshots);
        $mailarch = trim($mailarch);
        $developer = trim($developer);
        $description = trim($description);
        $email = trim($email);
        $depend = trim($depend);
        $urgency = trim($urgency);
        $section = trim(strtok($seccat, "/"));
        $category = trim(strtok("."));
        $set = "name='{$name}',type='{$type}',version='{$version}',section='{$section}',category='{$category}',license='{$license}',homepage='{$homepage}',download='{$download}',changelog='{$changelog}',rpm='{$rpm}',deb='{$deb}',tgz='{$tgz}',cvs='{$cvs}',screenshots='{$screenshots}',mailarch='{$mailarch}',developer='{$developer}',description='{$description}',modification=NOW(),creation=NOW(),email='{$email}',depend='{$depend}',user='" . $auth->auth["uname"] . "',urgency='{$urgency}',status='{$status}'";
        $db->query("INSERT pending SET {$set}");
        // Select and show new/updated application with counters
        $where = "pending.name='{$name}' AND type='{$type}' AND version='{$version}' AND pending.user=auth_user.username";
        $group = "pending.name";
        $query = "SELECT * FROM pending,auth_user WHERE {$where} GROUP BY {$group}";
        apppend($query);
        if ($ml_notify) {
            $msg = "insert application {$name} {$version} (" . typestr($type) . ") by " . $auth->auth["uname"] . ".";
            mailuser("editor", "insert application", $msg);
        }
    }
}
?>
<!-- end content -->

<?php 
require "./include/footer.inc";
@page_close();
开发者ID:BackupTheBerlios,项目名称:sourcewell,代码行数:31,代码来源:insert.php

示例6: values

            if ($showemail == "on") {
                $showemail = "yes";
            } else {
                $showemail = "no";
            }
            $query = "insert into extra_perms values('{$username}','{$showname}','{$showemail}','yes','yes')";
            $db->query($query);
            // send mail
            $message = $t->translate("Thank you for registering on the {$sys_name} Site. In order") . "\n" . $t->translate("to complete your registration, visit the following URL") . ": \n\n" . $sys_url . "verify.php?confirm_hash={$u_id}\n\n" . $t->translate("Enjoy the site") . ".\n\n" . $t->translate(" -- the {$sys_name} crew") . "\n";
            mail($email_usr, "[{$sys_name}] " . $t->translate("Developer Registration"), $message, "From: {$ml_newsfromaddr}\nReply-To: {$ml_newsreplyaddr}\nX-Mailer: PHP");
            $msg = $t->translate("Congratulations") . "! " . $t->translate("You have registered on {$sys_name}") . "." . "<p>" . $t->translate("Your new username is") . ": <b>{$username}</b>" . "<p>" . $t->translate("You are now being sent a confirmation email to verify your email address") . "." . "<br>" . $t->translate("Visiting the link sent to you in this email will activate your account") . ".";
            if ($ml_notify) {
                $message = "Username: {$username}\n";
                $message .= "Realname: {$realname}\n";
                $message .= "E-Mail:   {$email_usr}\n";
                mailuser("admin", "New Developer has registered", $message);
            }
            $bx->box_full($t->translate("Developer Registration"), $msg);
            $reg = 1;
            break;
        default:
            break;
    }
}
if (!$reg) {
    $bx->box_begin();
    $bx->box_title($t->translate("Register as a new Developer"));
    $bx->box_body_begin();
    ?>
<table border=0 cellspacing=0 cellpadding=3>
<tr>
开发者ID:BackupTheBerlios,项目名称:devcounter-svn,代码行数:31,代码来源:register.php

示例7: values

            $permlist = "user_pending";
            $query = "insert into auth_user values('{$u_id}','{$username}','{$password}','{$realname}','{$email_usr}',{$modification_usr},{$creation_usr},'{$permlist}')";
            $db->query($query);
            if ($db->affected_rows() == 0) {
                $be->box_full($t->translate("Error"), $t->translate("Registration of new User failed") . ":<br> {$query}");
                break;
            }
            // send mail
            $message = $t->translate("Thank you for registering on the {$sys_name} Site. In order") . "\n" . $t->translate("to complete your registration, visit the following URL") . ": \n\n" . $sys_url . "verify.php?confirm_hash={$u_id}\n\n" . $t->translate("Enjoy the site") . ".\n\n" . $t->translate(" -- the {$sys_name} crew") . "\n";
            mail($email_usr, "[{$sys_name}] " . $t->translate("User Registration"), $message, "From: {$ml_newsfromaddr}\nReply-To: {$ml_newsreplyaddr}\nX-Mailer: PHP");
            $msg = $t->translate("Congratulations") . "! " . $t->translate("You have registered on {$sys_name}") . "." . "<p>" . $t->translate("Your new username is") . ": <b>{$username}</b>" . "<p>" . $t->translate("You are now being sent a confirmation email to verify your email address") . "." . "<br>" . $t->translate("Visiting the link sent to you in this email will activate your account") . ".";
            if ($ml_notify) {
                $message = "Username: {$username}\n";
                $message .= "Realname: {$realname}\n";
                $message .= "E-Mail:   {$email_usr}\n";
                mailuser("admin", "New User has registered", $message);
            }
            $bx->box_full($t->translate("User Registration"), $msg);
            $reg = 1;
            break;
        default:
            break;
    }
}
if (!$reg) {
    $bx->box_begin();
    $bx->box_title($t->translate("Register as a new User"));
    $bx->box_body_begin();
    ?>
<table border=0 cellspacing=0 cellpadding=3>
<tr>
开发者ID:BackupTheBerlios,项目名称:docswell-svn,代码行数:31,代码来源:register.php

示例8: mail

                mail($email_usr, "[{$sys_name}] " . $t->translate("Developer Registration"), $message, "From: {$ml_newsfromaddr}\nReply-To: " . "{$ml_newsreplyaddr}\nX-Mailer: PHP");
                $msg = $t->translate("Congratulations") . "! " . $t->translate("You have registered on {$sys_name}") . "." . "<p>" . $t->translate("Your new username is") . ": <b>{$username}</b>" . "<p>" . $t->translate("You are now being sent a confirmation " . "email to verify your email address") . "." . "<br>" . $t->translate("Visiting the link sent to you in this " . "email will activate your account") . ".";
            } else {
                mail($email_usr, "[{$sys_name}] " . $t->translate("Registration as Sponsor in BerliOS " . "SourceAgency"), $message, "From: {$ml_newsfromaddr}\nReply-To: {$ml_newsreplyaddr}\n" . "X-Mailer: PHP");
                $msg = $t->translate("Congratulations") . "! " . $t->translate("You have registered on {$sys_name}") . "." . "<p>" . $t->translate("Your new username is") . ": <b>{$username}</b>" . "<p>" . $t->translate("You are now being sent further " . "information via email") . ".";
            }
            if ($ml_notify) {
                $message = $t->translate("Username") . ": {$username}\n";
                if ($user_type == "devel") {
                    $message .= $t->translate("User type") . ": " . $t->translate("Developer") . "\n";
                } else {
                    $message .= $t->translate("User type") . ": " . $t->translate("Sponsor") . "\n";
                }
                $message .= $t->translate("Realname") . ": {$realname}\n";
                $message .= $t->translate("E-Mail") . ":   {$email_usr}\n";
                mailuser("admin", $t->translate("New User has registered"), $message);
            }
            $bx->box_full($t->translate("User Registration"), $msg);
            $reg = 1;
            break;
        default:
            break;
    }
}
if (!$reg) {
    $bx->box_begin();
    $bx->box_title($t->translate("Register as a new User"));
    $bx->box_body_begin();
    ?>
<table border="0" cellspacing="0" cellpadding="3">
<tr>
开发者ID:BackupTheBerlios,项目名称:sourceagency,代码行数:31,代码来源:register.php

示例9: mysql_die

                        }
                        if ($action == "erase" && !$perm->have_perm("admin")) {
                            $be->box_full($t->translate("Error"), $t->translate("Access denied"));
                        } else {
                            if (!$db->query($query)) {
                                mysql_die($db);
                            } else {
                                if ($action == "erase") {
                                    $be->box_full($t->translate("Erase"), $t->translate("Solution is erased"));
                                } else {
                                    entbysolid($db, $id);
                                    solbysolid($db, $id);
                                }
                                if ($ml_notify) {
                                    $msg = "{$action} solution (ID: {$id}) by " . $auth->auth["uname"] . ".";
                                    mailuser("admin", "{$action} solution", $msg);
                                }
                            }
                        }
                    } else {
                        $be->box_full($t->translate("Error"), $t->translate("No Description specified"));
                    }
                } else {
                    $be->box_full($t->translate("Error"), $t->translate("No Name specified"));
                }
            }
        } else {
            $be->box_full($t->translate("Error"), $t->translate("Access denied"));
        }
    }
} else {
开发者ID:BackupTheBerlios,项目名称:sourcebiz,代码行数:31,代码来源:solupd.php

示例10: mysql_die

                        }
                        if ($action == "erase" && !$perm->have_perm("admin")) {
                            $be->box_full($t->translate("Error"), $t->translate("Access denied"));
                        } else {
                            if (!$db->query($query)) {
                                mysql_die($db);
                            } else {
                                if ($action == "erase") {
                                    $be->box_full($t->translate("Erase"), $t->translate("News is erased"));
                                } else {
                                    entbynewid($db, $id);
                                    newbynewid($db, $id);
                                }
                                if ($ml_notify) {
                                    $msg = "{$action} news (ID: {$id}) by " . $auth->auth["uname"] . ".";
                                    mailuser("admin", "{$action} news", $msg);
                                }
                            }
                        }
                    } else {
                        $be->box_full($t->translate("Error"), $t->translate("No News specified"));
                    }
                } else {
                    $be->box_full($t->translate("Error"), $t->translate("No Subject specified"));
                }
            }
        } else {
            $be->box_full($t->translate("Error"), $t->translate("Access denied"));
        }
    }
} else {
开发者ID:BackupTheBerlios,项目名称:sourcebiz,代码行数:31,代码来源:newupd.php

示例11: lib_die

                    // password are identical?
                    $be->box_full($t->translate('Error'), $t->translate('The passwords are not identical') . '. ' . $t->translate('Please try again') . '!');
                    break;
                }
                $query = "UPDATE auth_user SET password='{$password}', " . "realname='{$realname}', email_usr='{$email_usr}', " . "modification_usr=NOW() WHERE user_id='{$u_id}'";
                $db->query($query);
                if ($db->affected_rows() == 0) {
                    lib_die('Change User Parameters failed' . ":<br>{$query}");
                    break;
                }
                $bi->box_full($t->translate('Change User Parameters'), $t->translate('Password and/or E-Mail Address of') . ' <b>' . $auth->auth['uname'] . '</b> ' . $t->translate('is changed') . '.');
                if ($ml_notify) {
                    $message = $t->translate('Username') . ': ' . $auth->auth['uname'] . "\n";
                    $message .= $t->translate('Realname') . ": {$realname}\n";
                    $message .= $t->translate('E-Mail') . ":   {$email_usr}\n";
                    mailuser('admin', $t->translate('User parameters has changed'), $message);
                }
            } else {
                $be->box_full($t->translate('Error'), $t->translate('Access denied'));
            }
            break;
        default:
            break;
    }
}
$bx->box_begin();
$bx->box_title($t->translate('Change User Parameters'));
$bx->box_body_begin();
htmlp_form_action();
$bx->box_columns_begin();
$db->query("SELECT * FROM auth_user WHERE username='" . $auth->auth['uname'] . "'");
开发者ID:BackupTheBerlios,项目名称:sourceagency,代码行数:31,代码来源:chguser.php

示例12: DB_SourceBiz

                                if (!chmod($to, 0666)) {
                                    $be->box_full($t->translate("Error"), $t->translate("Unable to change logofile mode"));
                                }
                            }
                            // Insert new counters
                            $dbcnt = new DB_SourceBiz();
                            $tables = "counter";
                            $set = "entid=" . $db->f("entid");
                            if (!$dbcnt->query("INSERT {$tables} SET {$set}")) {
                                mysql_die($dbcnt);
                            } else {
                                // Select and show new enterprise with counters
                                entbyentid($db, $db->f("entid"));
                                if ($ml_notify) {
                                    $msg = "insert enterprise {$name} by " . $auth->auth["uname"] . ".";
                                    mailuser("admin", "insert enterprise", $msg);
                                }
                            }
                        }
                    }
                }
            }
        } else {
            $be->box_full($t->translate("Error"), $t->translate("No Short Profile specified"));
        }
    } else {
        $be->box_full($t->translate("Error"), $t->translate("No Name specified"));
    }
}
?>
<!-- end content -->
开发者ID:BackupTheBerlios,项目名称:sourcebiz,代码行数:31,代码来源:entins.php

示例13: mysql_die

         } else {
             // If enterprise in table
             if ($db->next_record()) {
                 if ($db->f("user") == $auth->auth["uname"] || $perm->have_perm("admin")) {
                     // Insert new services
                     $tables = "services";
                     $set = "entid_svc='{$id}',category_svc='{$category_svc}',name_svc='{$name_svc}',description_svc='{$description_svc}',homepage_svc='{$homepage_svc}',status_svc='A',modification_svc=NOW(),creation_svc=NOW()";
                     if (!$db->query("INSERT {$tables} SET {$set}")) {
                         mysql_die($db);
                     }
                     // Select and show new/updated enterprises with services
                     entbyentid($db, $id);
                     svcbyentid($db, $id);
                     if ($ml_notify) {
                         $msg = "insert service \"{$name_svc}\" by " . $auth->auth["uname"] . ".";
                         mailuser("admin", "insert service", $msg);
                     }
                 } else {
                     $be->box_full($t->translate("Error"), $t->translate("Access denied"));
                 }
                 // If enterprise is not in table
             } else {
                 $be->box_full($t->translate("Error"), $t->translate("Enterprise") . " (ID: {$id}) " . $t->translate("does not exist") . ".");
             }
         }
     } else {
         $be->box_full($t->translate("Error"), $t->translate("No Description specified"));
     }
 } else {
     $be->box_full($t->translate("Error"), $t->translate("No Name specified"));
 }
开发者ID:BackupTheBerlios,项目名称:sourcebiz,代码行数:31,代码来源:svcins.php

示例14: addslashes

            if (count($classes) > 0) {
                $clalist = addslashes(implode($classes, ","));
            } else {
                $clalist = "";
            }
            $tables = "classifications";
            $set = "type='{$type}',class='{$clalist}'";
            $where = "conid='{$id}'";
            $query = "UPDATE {$tables} SET {$set} WHERE {$where}";
            if (!$db->query($query)) {
                mysql_die($db);
            } else {
                conbyconid($db, $id);
                if ($ml_notify) {
                    $msg = "update classification \"{$clalist}\" of contact (ID: {$id}) by " . $auth->auth["uname"] . ".";
                    mailuser("admin", "update classification", $msg);
                }
            }
        } else {
            $be->box_full($t->translate("Error"), $t->translate("Access denied"));
        }
    }
} else {
    $be->box_full($t->translate("Error"), $t->translate("No Contact ID specified"));
}
?>
<!-- end content -->

<?php 
require "./include/footer.inc";
page_close();
开发者ID:BackupTheBerlios,项目名称:sourcecontact,代码行数:31,代码来源:claupd.php

示例15: mysql_die

                        }
                        if ($action == "erase" && !$perm->have_perm("admin")) {
                            $be->box_full($t->translate("Error"), $t->translate("Access denied"));
                        } else {
                            if (!$db->query($query)) {
                                mysql_die($db);
                            } else {
                                if ($action == "erase") {
                                    $be->box_full($t->translate("Erase"), $t->translate("Service is erased"));
                                } else {
                                    entbysvcid($db, $id);
                                    svcbysvcid($db, $id);
                                }
                                if ($ml_notify) {
                                    $msg = "{$action} service (ID: {$id}) by " . $auth->auth["uname"] . ".";
                                    mailuser("admin", "{$action} service", $msg);
                                }
                            }
                        }
                    } else {
                        $be->box_full($t->translate("Error"), $t->translate("No Description specified"));
                    }
                } else {
                    $be->box_full($t->translate("Error"), $t->translate("No Name specified"));
                }
            }
        } else {
            $be->box_full($t->translate("Error"), $t->translate("Access denied"));
        }
    }
} else {
开发者ID:BackupTheBerlios,项目名称:sourcebiz,代码行数:31,代码来源:svcupd.php


注:本文中的mailuser函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。