• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP mailuser函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: mysql_die

         } else {
             // If enterprise in table
             if ($db->next_record()) {
                 if ($db->f("user") == $auth->auth["uname"] || $perm->have_perm("admin")) {
                     // Insert new solutions
                     $tables = "solutions";
                     $set = "entid_sol='{$id}',name_sol='{$name_sol}',description_sol='{$description_sol}',homepage_sol='{$homepage_sol}',status_sol='A',modification_sol=NOW(),creation_sol=NOW()";
                     if (!$db->query("INSERT {$tables} SET {$set}")) {
                         mysql_die($db);
                     }
                     // Select and show new/updated enterprises with solutions
                     entbyentid($db, $id);
                     solbyentid($db, $id);
                     if ($ml_notify) {
                         $msg = "insert solution \"{$name_sol}\" by " . $auth->auth["uname"] . ".";
                         mailuser("admin", "insert solution", $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,代码来源:solins.php


示例17: appfull

            $where = "software.appid='{$id}' AND software.appid=counter.appid AND software.user=auth_user.username";
            $group = "software.appid";
            $query = "SELECT {$columns} FROM {$tables} WHERE {$where} GROUP BY {$group}";
            appfull($query);
            $query = "SELECT * FROM comments,auth_user WHERE appid='{$id}' AND auth_user.username=comments.user_cmt ORDER BY creation_cmt DESC";
            cmtshow($query);
        } else {
            // $operation = "INSERT"
            $tables = "pending,auth_user";
            $where = "pending.name='" . addslashes($name) . "' AND type='{$type}' AND version='" . addslashes($version) . "' AND pending.user=auth_user.username";
            $group = "pending.name";
            $query = "SELECT * FROM {$tables} WHERE {$where} GROUP BY {$group}";
            // echo "<p>$query\n";
            apppend($query);
        }
        if ($ml_notify) {
            $db->query("SELECT name,version,type FROM software WHERE appid='{$id}'");
            $db->next_record();
            $message = $action . " application " . $db->f("name") . " " . $db->f("version") . " (" . typestr($db->f("type")) . ") by " . $auth->auth["uname"];
            mailuser("editor", $action . " application", $message);
        }
    } else {
        $be->box_full($t->translate("Error"), $t->translate("No Application ID specified") . "." . "<br>" . $t->translate("Please select") . " <a href=\"" . $sess->url("appbyuser.php") . "\">" . $t->translate("Change Apps") . "</a>.");
    }
}
?>
<!-- end content -->

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


示例18: basename

                        } else {
                            if ($action == "erase") {
                                $be->box_full($t->translate("Erase"), $t->translate("Contact is erased"));
                            } else {
                                if ($logoact == "new" && !empty($logo_con_name)) {
                                    if (!copy($logo_con, $sys_logo_dir . $db->f("conid") . "con_" . basename($logo_con_name))) {
                                        $be->box_full($t->translate("Error"), $t->translate("Unable to copy logofile to logo directory"));
                                    }
                                    @chmod($sys_logo_dir . $db->f("conid") . "con_" . basename($logo_con_name), 0666);
                                }
                                entbyconid($db, $id);
                                conbyconid($db, $id);
                            }
                            if ($ml_notify) {
                                $msg = "{$action} contact (ID: {$id}) by " . $auth->auth["uname"] . ".";
                                mailuser("admin", "{$action} contact", $msg);
                            }
                        }
                    }
                } else {
                    $be->box_full($t->translate("Error"), $t->translate("No Name specified"));
                }
            }
        } else {
            $be->box_full($t->translate("Error"), $t->translate("Access denied"));
        }
    }
} else {
    $be->box_full($t->translate("Error"), $t->translate("No Contact ID specified"));
}
?>
开发者ID:BackupTheBerlios,项目名称:sourcebiz,代码行数:31,代码来源:conupd.php


示例19: debug

        // Delete comments
        $query = "DELETE FROM tblcomment WHERE solutions_id='{$solu_id}'";
        debug($query);
        $db->query($query);
        // Delete documents in document directory
        $query = "SELECT document_filename FROM tbldocument WHERE solutions_id='{$solu_id}'";
        debug($query);
        $db->query($query);
        while ($db->next_record()) {
            if (!unlink($sys_docu_dir . $solu_id . "document_" . $db->f("document_filename"))) {
                $be->box_full($t->translate("Error"), $t->translate("Unable to remove document"));
            }
        }
        // Delete documents
        $query = "DELETE FROM tbldocument WHERE solutions_id='{$solu_id}'";
        debug($query);
        $db->query($query);
        // Sent notification mail to administrators
        if ($ml_notify) {
            $message = "delete solution {$solu_id} by " . $auth->auth["uname"] . "\n";
            mailuser("admin", "delete solution", $message);
        }
        $bx->box_full($t->translate("Delete Solution"), $t->translate("Solution successful deleted"));
    }
}
?>

<!-- end content -->
<?php 
require "footer.inc";
@page_close();
开发者ID:BackupTheBerlios,项目名称:sourcelines,代码行数:31,代码来源:updsolutions.php


示例20: addslashes

             // If contact in table
             if ($db->next_record()) {
                 // If contact owner is a logged in user
                 if ($db->f("user") == $auth->auth["uname"] || $perm->have_perm("admin")) {
                     // Insert new class
                     $clalist = addslashes(implode($classes, ","));
                     $tables = "classifications";
                     $set = "conid='{$id}',type='{$type}',class='{$clalist}'";
                     if (!$db->query("INSERT {$tables} SET {$set}")) {
                         mysql_die($db);
                     }
                     // Select and show new/updated contact with classification
                     conbyconid($db, $id);
                     if ($ml_notify) {
                         $msg = "insert classification \"{$clalist}\" of contact (ID: {$id}) by " . $auth->auth["uname"] . ".";
                         mailuser("admin", "insert classification", $msg);
                     }
                     // If contact owner isn't a logged in user
                 } else {
                     $be->box_full($t->translate("Error"), $t->translate("Access denied"));
                 }
                 // If contact not in table
             } else {
                 $be->box_full($t->translate("Error"), $t->translate("Contact") . " (ID: {$id}) " . $t->translate("does not exist"));
             }
         }
     } else {
         $be->box_full($t->translate("Error"), $t->translate("No Classifications specified"));
     }
     // If contact id not specified
 } else {
开发者ID:BackupTheBerlios,项目名称:sourcecontact,代码行数:31,

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP mailusers_get_default_mail_format函数代码示例发布时间:2022-05-15
下一篇:
PHP mailto函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap